{"id":20125688,"url":"https://github.com/playx18/asmkit","last_synced_at":"2025-05-06T17:34:38.351Z","repository":{"id":262469107,"uuid":"878576000","full_name":"playX18/asmkit","owner":"playX18","description":"Assembler toolkit: encoding and decoding of various architectures","archived":false,"fork":false,"pushed_at":"2024-11-12T15:46:38.000Z","size":1865,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-12T16:23:38.243Z","etag":null,"topics":["aarch64","assembler","jit","ppc64","riscv","riscv64","x86"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/playX18.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-25T16:39:44.000Z","updated_at":"2024-11-12T16:09:02.000Z","dependencies_parsed_at":"2024-11-12T16:35:23.240Z","dependency_job_id":null,"html_url":"https://github.com/playX18/asmkit","commit_stats":null,"previous_names":["playx18/asmkit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playX18%2Fasmkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playX18%2Fasmkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playX18%2Fasmkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playX18%2Fasmkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/playX18","download_url":"https://codeload.github.com/playX18/asmkit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224517393,"owners_count":17324407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aarch64","assembler","jit","ppc64","riscv","riscv64","x86"],"created_at":"2024-11-13T20:09:10.137Z","updated_at":"2025-05-06T17:34:38.335Z","avatar_url":"https://github.com/playX18.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asmkit\n\n`#![no_std]` assembler library. \n\n# Features\n- X64, RISC-V, PPC, and ARM (WIP) assemblers\n- Small and portable library.\n- Tiny amount of dependencies:\n    - `libc`, `intrusive-collections`: for JIT support\n    - `paste`, `derive-more`: makes our life simpler when declaring arch-specific stuff over and over\n    - `smallvec`: for code generation to not heap allocate often\n- Relocations are provided by CodeBuffer interface and assembler will use them if you use symbols in API.\n\n# Goals\n- Auto-generated assemblers for as many as possible platform.\n- Portability: library should built \u0026 run on any platform (even if it does not provide assembler for one), and assemblers on its own\nmust not be dependent on platform we built `asmkit` on.\n\n\n\n# TODO\n- [ ] Add support for ARM64\n- [ ] Add support for PPC64\n- [ ] Add support for OpenPOWER (POWER9/POWER10)\n- [ ] Add support for RW info and implicit operand info for all opcodes\n- [ ] Cross-platform helpers to perform calls\n- [ ] JSC/SpiderMonkey-like `MacroAssembler` to help generate assembly without worrying about target architecture\n- [ ] Compiler/Builder interface: emit instructions as `Inst` structure and allow modifying them before emitting,\nand also possibly to have regalloc pass over them.\n\n# Related projects\n\n- [AsmJit](https://github.com/asmjit/asmjit): Core API, JIT API, and operands are ported from AsmJit,\nthe overall idea of making portable assembler in Rust comes from AsmJit\n- [fadec](https://github.com/aengelke/fadec): x86/64 encoding/decoding library. We use opcode tables provided by fadec \nfor x86/64 support and `encode.c` is partially used for emitting code. \n- [disarm](https://github.com/aengelke/disarm): AARch64 encoding/decoding library. We use opcode tables from disarm \nto generate AArch64 encodigns\n- [riscv-opcodes](https://github.com/riscv/riscv-opcodes): Opcode table for RISC-V, used to generate RISC-V assembler/disassembler.\n- [GDB](https://sourceware.org/gdb/): GDB is a debugger but we use its `ppc-opc.c` as an opcode table for PowerPC support. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayx18%2Fasmkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplayx18%2Fasmkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayx18%2Fasmkit/lists"}