by
Yusuke Izawa,
Hidehiko Masuhara and Carl Friedrich Bolz-Tereick
Abstract:
Modern, powerful virtual machines such as those running Java or JavaScript support multi-tier JIT compilation and optimization features to achieve their high performance. However, implementing and maintaining several compilers/optimizers that interact with each other requires hard-working of VM developers. In this paper, we propose a technique to realize two-level JIT compilation in RPython without implementing several interpreters or compilers from scratch. As a preliminary realization, we created adaptive RPython which performs both baseline JIT compilation based on threaded code and tracing JIT compilation. We also implemented the small programming language with it. Furthermore, we preliminary evaluated the performance in a small language, and our baseline JIT compilation achieved ran 1.77x faster than the interpreter-only execution. Furthermore, we observed that when we apply an optimal JIT compilation for different target methods, the performance was mostly the same as the one optimizing JIT compilation strategy, saving about 40 % of the compilation code size.
Reference:
Two-level Just-in-Time Compilation with One Interpreter and One Engine (Yusuke Izawa, Hidehiko Masuhara and Carl Friedrich Bolz-Tereick), The ACM SIGPLAN Workshop on Partial Evaluation and Program Manipulation (PEPM 2022), 2022.
Bibtex Entry:
@misc{izawa2022pepm,
author = {Yusuke Izawa and Hidehiko Masuhara and {Carl Friedrich} Bolz-Tereick},
title = {Two-level Just-in-Time Compilation with One Interpreter and One Engine},
date = {2022-01-17},
howpublished = {The ACM SIGPLAN Workshop on Partial Evaluation and Program Manipulation (PEPM 2022)},
month = jan,
year = 2022,
optnote = {(short paper)},
url = {https://popl22.sigplan.org/details/pepm-2022-papers/3/Two-level-Just-in-Time-Compilation-with-One-Interpreter-and-One-Engine},
pdf = {pepm2022.pdf},
abstract = {Modern, powerful virtual machines such as those running Java or JavaScript support multi-tier JIT compilation and optimization features to achieve their high performance. However, implementing and maintaining several compilers/optimizers that interact with each other requires hard-working of VM developers. In this paper, we propose a technique to realize two-level JIT compilation in RPython without implementing several interpreters or compilers from scratch. As a preliminary realization, we created adaptive RPython which performs both baseline JIT compilation based on threaded code and tracing JIT compilation. We also implemented the small programming language with it. Furthermore, we preliminary evaluated the performance in a small language, and our baseline JIT compilation achieved ran 1.77x faster than the interpreter-only execution. Furthermore, we observed that when we apply an optimal JIT compilation for different target methods, the performance was mostly the same as the one optimizing JIT compilation strategy, saving about 40 \% of the compilation code size.}
}