3 ms·
I had a lot of fun recently getting my feet wet with JIT using GNU lightning. I highly recommend to check it out because it's quite small and doesn't require an
by mntmn 12y ago
I had a lot of fun recently getting my feet wet with JIT using GNU lightning. I highly recommend to check it out because it's quite small and doesn't require an industrial strength toolchain like LLVM. All you need to get started is on one page: http://www.gnu.org/software/lightning/manual/lightning.html http://www.gnu.org/software/lightning/manual/lightning.html
In case you're curious, I built a working LISP compiler from it, but will have to refactor it soon; it has central flaws in handling (un)boxing. Anyway: https://github.com/mntmn/bomberjacket/blob/master/sledge/compiler.c https://github.com/mntmn/bomberjacket/blob/master/sledge/com...
- legulere 12y agoOn the other hand, it uses lots of macro magic and can break at some points. Also the amount of registers is restricted by 32 bit x86.