Register‐Based and Stack‐Based Virtual Machines: Which Perform Better in JIT Compilation Scenarios?

Uloženo v:
Podrobná bibliografie
Název: Register‐Based and Stack‐Based Virtual Machines: Which Perform Better in JIT Compilation Scenarios?
Autoři: Šimek, Bohuslav, Fiala, Dalibor, Dostal, Martin
Zdroj: Software: Practice & Experience; Nov2025, Vol. 55 Issue 11, p1896-1910, 15p
Témata: VIRTUAL machine systems, COMPUTER performance, BENCHMARK problems (Computer science), COMPUTER architecture, COMPILERS (Computer programs)
Abstrakt: Background: Just‐In‐Time (JIT) compilation plays a critical role in optimizing the performance of modern virtual machines (VMs). While the architecture of VMs–register‐based or stack‐based–has long been a subject of debate, empirical analysis focusing on JIT compilation performance is relatively sparse. Objective: In this study, we aim to answer the question: "Register‐based and stack‐based virtual machines: which perform better in JIT compilation scenarios?" Methods: We explore this through a comprehensive set of benchmarks measuring execution speed. To achieve this, we developed identical test cases in languages that support both types of VM architectures and ran these tests under controlled conditions. The performance metrics were captured and analyzed for JIT compilation, including initial interpretation, bytecode translation, and optimized code execution. Results: Our findings suggest that register‐based VMs generally outperform stack‐based VMs in terms of execution speed. Moreover, the performance gap between the two architectures in mixed execution mode, which essentially copies characteristics of the underlying virtual machine, suggests that making the right choice of VM architecture is still important. Conclusion: This study provides developers, researchers, and system architects with actionable insights into the performance trade‐offs associated with each VM architecture in JIT‐compiled environments. The findings can guide the design decisions in the development of new virtual machines and JIT compilation strategies. [ABSTRACT FROM AUTHOR]
Copyright of Software: Practice & Experience is the property of Wiley-Blackwell and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)
Databáze: Complementary Index
Popis
Abstrakt:Background: Just‐In‐Time (JIT) compilation plays a critical role in optimizing the performance of modern virtual machines (VMs). While the architecture of VMs–register‐based or stack‐based–has long been a subject of debate, empirical analysis focusing on JIT compilation performance is relatively sparse. Objective: In this study, we aim to answer the question: "Register‐based and stack‐based virtual machines: which perform better in JIT compilation scenarios?" Methods: We explore this through a comprehensive set of benchmarks measuring execution speed. To achieve this, we developed identical test cases in languages that support both types of VM architectures and ran these tests under controlled conditions. The performance metrics were captured and analyzed for JIT compilation, including initial interpretation, bytecode translation, and optimized code execution. Results: Our findings suggest that register‐based VMs generally outperform stack‐based VMs in terms of execution speed. Moreover, the performance gap between the two architectures in mixed execution mode, which essentially copies characteristics of the underlying virtual machine, suggests that making the right choice of VM architecture is still important. Conclusion: This study provides developers, researchers, and system architects with actionable insights into the performance trade‐offs associated with each VM architecture in JIT‐compiled environments. The findings can guide the design decisions in the development of new virtual machines and JIT compilation strategies. [ABSTRACT FROM AUTHOR]
ISSN:00380644
DOI:10.1002/spe.70014