We use cookies to improve your experience with our site.

另一种智能代码生成系统:一种灵活低成本解决方案

Yet Another Intelligent Code-Generating System: A Flexible and Low-Cost Solution

  • 摘要: 现代编译器采用多种代码转换算法提升目标代码的质量。然而,一个复杂问题是如何决定必须使用哪些转换算法。它的复杂性在于三个方面:大量的转换算法,多种组合可能性,和一些配置可能性。近年来,相关文献已经陈述了多种智能系统。其目的是检索转换算法并将他们应用到某一特定项目。本文提出了一种灵活,低成本,智能的系统,通过考虑项目的特定特征,它可以为某个输入项目识别转换算法。该系统参数化选择灵活和计算成本低廉。此外,它可以最大化可用计算资源的挖掘。该系统应用于低能级虚拟机器设备。结果表明较其他系统而言,它的性能可以提升21.36%。此外,相对于低能级虚拟机器设备中最激进编译器优化等级,其平均改善率到达了17.72%。

     

    Abstract: Modern compilers apply various code transformation algorithms to improve the quality of the target code. However, a complex problem is to determine which transformation algorithms must be utilized. This is difficult because of three reasons:a number of transformation algorithms, various combination possibilities, and several configuration possibilities. Over the last few years, various intelligent systems were presented in the literature. The goal of these systems is to search for transformation algorithms and thus apply them to a certain program. This paper proposes a flexible, low-cost and intelligent system capable of identifying transformation algorithms for an input program, considering the program's specific features. This system is flexible for parameterization selection and has a low-computational cost. In addition, it has the capability to maximize the exploration of available computational resources. The system was implemented under the Low Level Virtual Machine infrastructure and the results indicate that it is capable of exceeding, up to 21.36%, performance reached by other systems. In addition, it achieved an average improvement of up to 17.72% over the most aggressive compiler optimization level of the Low Level Virtual Machine infrastructure.

     

/

返回文章
返回