3 ms·
I can think of three VMs that do JIT re-compilation along the lines that you mentioned. Google V8 is fairly well documented, but I think it is very complicated
by CyberFonic 8y ago
I can think of three VMs that do JIT re-compilation along the lines that you mentioned.
Google V8 is fairly well documented, but I think it is very complicated.
JVM is a beast. Perhaps the openJDK project has some useful information.
Personally, I would look at Racket Scheme: https://racket-lang.org/ https://racket-lang.org/
The main reason being is that there are several papers that describe how it is done internally.
A simple example that could get you started may be found at: https://eli.thegreenplace.net/2013/11/05/how-to-jit-an-introduction https://eli.thegreenplace.net/2013/11/05/how-to-jit-an-intro...
- divs1210 8y agoThanks a lot! TIL there are libraries for that.