|
|
Log in / Subscribe / Register

Tratt: Fast Enough VMs in Fast Enough Time

Tratt: Fast Enough VMs in Fast Enough Time

Posted Feb 11, 2012 13:02 UTC (Sat) by khim (subscriber, #9252)
In reply to: Tratt: Fast Enough VMs in Fast Enough Time by daglwn
Parent article: Tratt: Fast Enough VMs in Fast Enough Time

It wasn't even a JIT.

Why not? JIT is supposed to compile bytecode to native code - and this is exactly what all contemporary CPUs are doing. Sure, their design is kind-of-unusual: where traditional JITs call for compilation from the easy-to-compile bytecode to predetermined native code JITs in our CPUs are created to compile from ad-hoc predetermined bytecode to flexible native code, but is it such a big difference?

A closer analogue to a JIT would be a hardware value predictor. Those never really took off either because predicting anything other than 0 is pretty tough.

This is true for software JITs as well. They, too, usually try to predict outcomes of branches, etc. In fact design of hardware JITs and software JITs are surprisingly similar. The biggest difference, of course, lies in the fact that software JIT have gobs of memory and can cache result of it's work pretty aggressively while hardware JIT only have tiny onboard memory - but on the other hand hardware JIT uses resources not directly accessible to the program itself so it does not interfere with program's execution.


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