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 implemented the BacCaml framework for proof-of-concept. We also report that some programs actually ran faster by the hybrid compilation in our experiments.
翻译:许多现代虚拟机器,如JVMS、.NET Forum和V8, 使用一个即时(JIT)编集器来取得高性能。有两大编集战略:基于追踪的汇编和基于方法的汇编。它们有其自身的利弊,因此我们认为,对不同的方案部分适用适当的战略对于更快地执行至关重要。本文提出了一个新的方法,称为元合金JIT编集器框架,将这两个战略合并成一个单一的元合金汇编器框架。我们实施了BacCaml概念校准框架。我们还报告说,一些程序实际上比我们实验中的混合汇编速度更快。