作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (24): 63-65. doi: 10.3969/j.issn.1000-3428.2006.24.023

• 软件技术与数据库 • 上一篇    下一篇

减小运行时优化开销的方法

郭振宇,刘 利,陈 彧,汤志忠   

  1. (清华大学计算机科学与技术系,北京100084)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-12-20 发布日期:2006-12-20

Ways to Reduce the Cost of Runtime Optimization

GUO Zhenyu, LIU Li, CHEN Yu, TANG Zhizhong   

  1. (Dept. of Computer Science and Technology, Tsinghua University, Beijing 100084)
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-12-20 Published:2006-12-20

摘要: 运行时优化在程序运行期间,根据采集到的相关信息,确定程序的热点并进行优化,从而加速程序的执行。然而,运行时优化本身有一定的开销,有时候会抵消甚至超出优化得到的效果。该文设计和实现了一个基于SMP/IPF(英特尔安腾系列)/Linux架构的自适应二进制代码优化/编译框架,其中包含了运行时优化。分析了运行时优化的阶段和开销,并介绍了在设计和实现该框架的过程中,为减小这种开销所提出的思路和采用的方法。

关键词: 运行时优化, 优化开销, 持续优化

Abstract: Runtime optimization analyzes the runtime information it collects, identifies hot spots, applies optimization on them, thus speedups the execution of the programs. However, the system itself may consume critical resources, which sometimes counteracts or even outweighs the benefit it gains, and leads to the failure of the optimization. This paper implements an adaptive binary optimization/compilation framework on SMP/IPF (Intel Itanium processor family)/Linux, among which runtime optimization is included. It also analyzes the stage and cost of runtime optimization, introduces the ideas and ways which are conducted to reduce them, during the implementation of the framework.

Key words: Runtime optimization, Optimization cost, Continuous optimization