4 ms·
GNU lightning is a simple and portable JIT library written in C, it might be a good fit. Its engine is fast and minimal, and does not perform much in the way of
by MaxBarraclough 4y ago
GNU lightning is a simple and portable JIT library written in C, it might be a good fit. Its engine is fast and minimal, and does not perform much in the way of optimisations for you.
(For what it's worth I'm a very minor contributor.)
* https://en.wikipedia.org/wiki/GNU_lightning https://en.wikipedia.org/wiki/GNU_lightning
* https://www.gnu.org/software/lightning/ https://www.gnu.org/software/lightning/
If you want a more sophisticated JIT engine, others have already mentioned libgccjit and LLVM (heavyweight compiler solutions), as well as Cranelift and Mir (more lightweight).
Of these, only Cranelift is written in Rust.