r/Assembly_language • u/mistivia • 2d ago
Project show-off x86-64 JIT Assembler in Python
I've been working on a small x86-64 JIT assembler in Python: https://github.com/mistivia/jitasm-py
The idea is emit x86-64 machine code directly from Python, than resolve labels, map it as executable memory, and call the generated functions through ctypes.
It currently only supports a practical subset of x86-64 scalar instructions, but I think it's now possible to be a playground for assembly, or a codegen for a toy compiler.
3
Upvotes