Many modern virtual machines, such as JVMs, .NET Framework and V8, employ a just-in-time (JIT) compiler to achieve their high-performance. There are two major compilation strategies; trace-based compilation and method-based compilation. They have their own advantages and disadvantages, so we presume that applying suitable strategies for different program parts is essential for faster execution. This paper proposes a new approach called the meta-hybrid JIT compiler framework, which combined the two strategies in a single meta-JIT compiler framework. We also present the proof-of-concept implementation BacCaml. We also report that some programs ran faster by the hybrid compilation in our experiments.
翻译:许多现代虚拟机器,如JVMS、.NET Framed和V8, 使用一个即时(JIT)编集器来取得高性能。有两大编集战略:基于追踪的汇编和基于方法的汇编。它们有其自身的优点和缺点,因此我们认为,对不同方案部分适用适当的战略对于更快地执行至关重要。本文提出一个新的方法,称为元合金的JIT编集器框架,将这两个战略合并成一个单一的元合金汇编器框架。我们还介绍了BacCaml概念执行证明。我们还报告说,我们实验中混合汇编的一些程序速度更快。