4 ms·
> wouldn't byte compilation become redundant? Bitcode is still useful, even with a JIT (just like in Java) - the JIT needs to do the heavy parsing, semantic an
by gopalv 8y ago
> wouldn't byte compilation become redundant?
Bitcode is still useful, even with a JIT (just like in Java) - the JIT needs to do the heavy parsing, semantic analysis etc everytime it starts.
However, the JIT means it can execute the bitcode faster than an interpreter can, because it can keep more intermediate steps in registers directly (like spill to an xmm register, instead of heap) & can do a tiny bit of cpu guided optimization (like is AES-NI available etc).