3 ms·
LibJIT is a library that provides generic Just-In-Time compiler functionality independent of any particular bytecode, language, or runtime: https://www.gnu.org
by stevekemp 4y ago
LibJIT is a library that provides generic Just-In-Time compiler functionality independent of any particular bytecode, language, or runtime:
https://www.gnu.org/software/libjit/ https://www.gnu.org/software/libjit/
I've used that in the past to speed up a toy interpreter, but of course it is in C, rather than Rust.
There is at least one binding for it in rust:
https://github.com/MonliH/jit-sys https://github.com/MonliH/jit-sys
Finally here's a good introduction with several approaches for JIT:
https://eli.thegreenplace.net/tag/code-generation https://eli.thegreenplace.net/tag/code-generation
- MaxBarraclough 4y agoLooks like LibJIT hasn't had a commit since April 2020. https://git.savannah.gnu.org/cgit/libjit.git/log/ https://git.savannah.gnu.org/cgit/libjit.git/log/