|
|
Log in / Subscribe / Register

Tratt: Fast Enough VMs in Fast Enough Time

Tratt: Fast Enough VMs in Fast Enough Time

Posted Feb 8, 2012 22:21 UTC (Wed) by ati (guest, #82816)
In reply to: Tratt: Fast Enough VMs in Fast Enough Time by farnz
Parent article: Tratt: Fast Enough VMs in Fast Enough Time

Another key difference between RPython and LLVM or libjit, is that the former
is a tracing optimizing JIT, while the latter is a one-time JIT compiler.

This practically means that in the case of RPython the JIT compiler will dynamically optimize hot code areas that might span several functions, based on runtime profiling information (with the aid of annotations from the VM),
effectively emitting binary code for an entire call-chain. The binary code further includes some code (guards) for reverting back to the interpreter.

In contrast, the LLVM JIT compilation is explicitly requested by the VM, and works by compiling a function-at-a-time to binary code, that has to be managed by the VM runtime. Obviously it is possible to build a tracing VM on top of LLVM, but it would require some effort.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds