Show HN: Cj–tiny no-deps JIT in C for x86-64 and ARM64
17 days ago
- #JIT
- #ARM64
- #x86-64
- Small JIT framework written in C with x86 and ARM64 backends.
- Supports multi-architecture code generation for x86-64 and ARM64 (with some SIMD limitations).
- Low-level API allows direct instruction emission without high-level constructs.
- No dependencies; pure C with clib.
- Backends are autogenerated using asmdb for x86 and a hand-generated file for ARM64.
- Register definitions are hand-crafted; the rest is handwritten.
- Examples, tests, and codegen docs may contain LLM-generated content.
- Includes reusable building blocks like prologue/epilogue setup and structured loops via optional builder helpers.
- Requires a C11 compiler (gcc, clang), POSIX-compliant OS (for mmap), and supported architecture (x86-64 or ARM64).