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

计算机工程 ›› 2011, Vol. 37 ›› Issue (6): 58-60. doi: 10.3969/j.issn.1000-3428.2011.06.021

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

基于值剖视的编译优化

孔凡金,黄 春   

  1. (国防科学技术大学计算机学院,长沙 410073)
  • 出版日期:2011-03-20 发布日期:2011-03-29
  • 作者简介:孔凡金(1979-),男,硕士,主研方向:编译优化;黄 春,研究员、博士

Compile Optimization Based on Value-profile

KONG Fan-jin, HUANG Chun   

  1. (School of Computer Science, National University of Defense Technology, Changsha 410073, China)
  • Online:2011-03-20 Published:2011-03-29

摘要:

介绍在GCC编译器中利用值剖视识别收集变量的不变特征信息并指导代码优化工作的方法。NPB基准测试程序的测试结果表明,GCC基于值剖视的优化引入的开销小,与边剖视一起使用时能获得较好的优化效果,在不同程序间显示出一定的优化针对性和局限性,值剖视信息的类型与数量、优化种类等存在较大的改进空间。

关键词: 基于剖视的优化, 值剖视, GCC编译器

Abstract:

This paper describes how to collect and use the invariant information of a variable in GCC. The optimization performance is evaluated using NPB benchmark. It proves that compiler optimizes and improves program performance based on the value profiles, but the effects of value profiling based optimizations are quite different between different programs. It shows that there are further improvements, such as value profiling information or optimization type, etc.

Key words: profile-based optimization, value-profile, GNU Compiler Collection(GCC)

中图分类号: