Translating JVM Code to MIPS Code
Compilation is not necessarily over with after the class file is constructed. At “execution,” the class is loaded into the JVM and then interpreted. In the Oracle HotSpotTMVM, once a method has been executed several times, it is compiled to native code-code that can be directly executed by the under...
Uloženo v:
| Vydáno v: | Introduction to Compiler Construction in a Java World s. 231 - 270 |
|---|---|
| Hlavní autoři: | , , |
| Médium: | Kapitola |
| Jazyk: | angličtina |
| Vydáno: |
United Kingdom
Chapman and Hall/CRC
2013
CRC Press LLC |
| Témata: | |
| ISBN: | 1439860882, 9781439860885 |
| On-line přístup: | Získat plný text |
| Tagy: |
Přidat tag
Žádné tagy, Buďte první, kdo vytvoří štítek k tomuto záznamu!
|
| Shrnutí: | Compilation is not necessarily over with after the class file is constructed. At “execution,”
the class is loaded into the JVM and then interpreted. In the Oracle HotSpotTMVM, once
a method has been executed several times, it is compiled to native code-code that can
be directly executed by the underlying computer. Once these hotspots in the code are
compiled, the native code is cached so that it may be re-used in subsequent invocations of
the method. So at run-time, control shifts back and forth between JVM code and native
code. Of course, the native code runs much faster than the interpreted JVM code. This
regimen takes advantage of the fact that nearly all programs spend most of their time
executing small regions of code. |
|---|---|
| ISBN: | 1439860882 9781439860885 |
| DOI: | 10.1201/9781482215076-12 |

