摘要: 运行时优化在程序运行期间,根据采集到的相关信息,确定程序的热点并进行优化,从而加速程序的执行。然而,运行时优化本身有一定的开销,有时候会抵消甚至超出优化得到的效果。该文设计和实现了一个基于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
郭振宇;刘 利;陈 彧;汤志忠. 减小运行时优化开销的方法[J]. 计算机工程, 2006, 32(24): 63-65.
GUO Zhenyu; LIU Li; CHEN Yu; TANG Zhizhong. Ways to Reduce the Cost of Runtime Optimization[J]. Computer Engineering, 2006, 32(24): 63-65.