arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.09391cs.PL
收藏

面向Rotor的优化型即时编译器

An Optimizing Just-In-Time Compiler for Rotor

João H. Trindade, José C. Silva

AI总结:

本文为Rotor扩展了一个面向IA-32的三阶段优化型即时编译器,通过控制流图与数据依赖图执行多项优化,在编译开销极小的情况下显著提升了生成代码的执行速度。

摘要:

共享源代码CLI(SSCLI),也称为Rotor,是微软以源代码形式发布的CLI实现。Rotor包含一个单遍即时编译器,可为Intel IA-32和IBM PowerPC处理器生成非优化代码。我们为Rotor扩展了一个面向IA-32的优化型即时编译器。该编译器包含三个阶段:控制流图生成、数据依赖图生成和最终代码生成。控制流图中的支配关系用于检测自然循环。在数据依赖图生成期间执行了多项优化。在生成本机代码期间,利用IA-32丰富的寻址模式进行指令折叠,从而减少代码规模和寄存器名称的使用。尽管存在三遍编译和优化的开销,该编译器仅比原始SSCLI编译器慢1.4到1.9倍,且生成的代码运行速度提高了6.4到10倍。

英文摘要:

The Shared Source CLI (SSCLI), also known as Rotor, is an implementation of the CLI released by Microsoft in source code. Rotor includes a single pass just-in-time compiler that generates non-optimized code for Intel IA-32 and IBM PowerPC processors. We extend Rotor with an optimizing just-in-time compiler for IA-32. This compiler has three passes: control flow graph generation, data dependence graph generation and final code generation. Dominance relations in the control flow graph are used to detect natural loops. A number of optimizations are performed during the generation of the data dependence graph. During native code generation, the rich address modes of IA-32 are used for instruction folding, reducing code size and usage of register names. Despite the overhead of three passes and optimizations, this compiler is only 1.4 to 1.9 times slower than the original SSCLI compiler and generates code that runs 6.4 to 10 times faster.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑