Playing around with some JIT-ting (using mmap
) on macOS with Apple Silicon (tested on M1 MBP running Sonoma 14.3.1).
To execute, make clean run
.
Output:
./jit ./hello_flat.bin
Hello, world from arm64 assembly!
./jit ./write_flat.bin "Message from shell invocation to C program to assembly routine :)" 69
Message from shell invocation to C program to assembly routine :)
make: *** [run] Error 69
If the entitlements are missing, run make entitlements