x86asm is an odin library to produce x86_64 machine code Example usage can be found in src/example Test radare2's rasm2 executable must be available in the PATH make test Build example make example