In Java the source format is Java bytecode, and the destination format is native machine instructions. Conversely, in JRuby, the source format is the JRuby AST, and the destination format is Java bytecode. Perhaps the most fascinating aspect of the JRuby JIT compiler is that it benefits from both the initial compilation into Java bytecode, and then later, when Java may attempt to translate the JRuby-generated bytecode into native machine instructions. So effectively, it is possible to get a double-JIT on your executing code.
(Link: Distilling JRuby: The JIT Compiler)
Distilling JRuby: The JIT Compiler
Advertisement


October 8, 2009

No comments yet... Be the first to leave a reply!