keystone

Lightweight multi-architecture assembler framework with language bindings

brewmacoslinux
Try with needOr install directly
Source

About

Assembler framework: Core + bindings

Commands

keystone

Examples

Assemble x86 assembly code and display hex output$ keystone -a x86 -m 32 <<< 'mov eax, 1'
Assemble ARM Thumb-2 instructions$ keystone -a arm -m thumb <<< 'mov r0, #5'
Assemble MIPS code with specific syntax$ keystone -a mips -m mips32 <<< 'addi $t0, $zero, 10'