首页> 外文期刊>Computer languages >Feedback-directed specialization of code
【24h】

Feedback-directed specialization of code

机译:反馈导向的代码专业化

获取原文
获取原文并翻译 | 示例
       

摘要

Based on feedback information, a large number of optimizations can be performed by the compiler. This information actually indicates the changing behavior of the applications and can be used to specialize code accordingly.rnCode specialization is a way to facilitate the compiler to perform optimizations by providing the information regarding variables in the code. It is however difficult to select the variables which maximize the benefit of specialization. Also the overhead of specialization and code size increase are the main issues while specializing code.rnThis paper suggests a novel method for improving the performance using specialization based on feedback information and analysis. The code is iteratively specialized after selecting candidate variables by using a heuristic, followed by generation of optimized templates. These templates require a limited set of instructions to be specialized at runtime and are valid for a large number of values. The overhead of runtime specialization is further minimized through optimal software cache of template clones whose instantiation can be performed at static compile time.rnThe experiments have been performed on Itanium-Ⅱ(IA-64) and Pentium-Ⅳ processors using icc and gcc compilers. A significant improvement in terms of execution speed and reduction of code size has been achieved for spec and fftw benchmarks.
机译:基于反馈信息,编译器可以执行大量优化。该信息实际上指示了应用程序的行为变化,可以用于相应地对代码进行专业化处理。代码专业化是一种通过提供有关代码中变量的信息来促进编译器执行优化的方法。但是,很难选择使专业化利益最大化的变量。在进行代码专业化时,专业化的开销和代码大小的增加也是主要问题。本文提出了一种基于反馈信息和分析的,通过专业化提高性能的新方法。通过使用启发式方法选择候选变量之后,代码将进行迭代专用化,然后生成优化的模板。这些模板需要一组有限的指令才能在运行时专用,并且对于大量值有效。通过优化模板克隆的软件缓存,可以在静态编译时实例化模板,从而进一步减少了运行时专业化的开销。rnn已经使用icc和gcc编译器在Itanium-Ⅱ(IA-64)和Pentium-Ⅳ处理器上进行了实验。对于spec和fftw基准,在执行速度和减少代码大小方面已实现了重大改进。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号