What free JIT compilers exist today and which are easier to use?

I will start writing a JIT / interpreter for a small language and would like to use some of the available JIT tools / libraries available today. What are my options (I only know about libjit, LLVM, and GNU lightning), and what would be easier to use (but not too slow)?

The requirement would be:

  • Compilation time is not important
  • Runtime is important, but so far, using the JIT compiler is not too complicated.
  • The importance of using
  • Garbage collection is not required.
  • Actually, a runtime environment is not required (I would just like JIT: to compile to a memory area, then take a pointer and start executing the generated code)
  • Development will be performed in standard C (without C ++, not related to the platform functions), with pthreads.
+4
source share
1 answer

Normal C standard with good runtime? you should look for LuaJIT (actually this is Dynamo, which is the backend, but still part of LuaJIT), which is the JIT trace compiler (JIT) where, like most of the ones mentioned, are static). It has garbage collection, but it can be easily removed or changed (scheduled major repairs are coming soon), and it has its own FFI, so it can easily perform external referencing (from level C, you should always look into nothingness).

The best part is its fully publicly available code, and the code is the documentation (which is good, since it is well structured).

+4
source

All Articles