by jacobvosmaer · 6y ago · 0 comments
I get it to compile on macOS if I remove the int define but then it segfaults when you run it. I wonder if there is some magic flag to make "main does not return int" a non-fatal error on Clang?
It's fun to read this code but running it is even more fun, you can see the VM code it generates, with source line annotations and all.
#include <stdint.h>
...and then replace the two "int" in main() with int32_t.
https://news.ycombinator.com/item?id=8560127
You can compile it on 64 bit OS X with clang's -m32 option and it should work.