ISSN 1000-1239 CN 11-1777/TP

计算机研究与发展 ›› 2021, Vol. 58 ›› Issue (3): 668-680.doi: 10.7544/issn1000-1239.2021.20190728

• 系统结构 • 上一篇    



  1. 1(计算机体系结构国家重点实验室(中国科学院计算技术研究所)  北京  100190);2(中国科学院计算技术研究所  北京  100190);3(中国科学院大学  北京  100049);4(西华师范大学计算机学院  四川南充  637009)  
  • 出版日期: 2021-03-01
  • 基金资助: 
    国家重点研发计划项目(2016YFB0200803);CCF腾讯科研基金项目;国家自然科学基金项目(61802368, 61521092, 61432016, 61432018, 61332009, 61702485, 61872043);西华师范大学英才基金项目(17YC149);南充市重大科技成果转换项目(18SXHZ0386);教育部产学合作协同育人项目(201702049002)

An Ideal Performance Oriented Approach for Cross-Framework Compiler Analysis

Lai Qingkuan1,3, Lü Fang1,2, He Chunlin4, He Xianbo4, Feng Xiaobing1,2,3   

  1. 1(State Key Laboratory of Computer Architecture(Institute of Computing Technology, Chinese Academy of Sciences), Beijing 100190);2(Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100190);3(University of Chinese Academy of Sciences, Beijing 100049);4(School of Computer Science, China West Normal University, Nanchong, Sichuan 637009) 
  • Online: 2021-03-01
  • Supported by: 
    This work was supported by the National Key Research and Development Program of China(2016YFB0200803), the CCF Research Fund Project of Tencent, the National Natural Science Foundation of China(61802368, 61521092, 61432016, 61432018, 61332009, 61702485, 61872043), the Talent Project of China West National University(17YC149), Nanchong City Major Scientific and Technological Achievement Conversion Project(18SXHZ0386), and the Ministry of Education Industry-University Cooperation Collaborative Education Project(201702049002).

摘要: 编译器性能是计算机系统架构充分发挥优势的体现, 编译器优化受机器平台与编译器特征的影响.编译器分析是在目标编译器与多参照编译器、目标平台与多参照平台之间进行的, 即编译器与平台的组合是分析的基础.只有在多组合情况下才能为目标编译器优化提供最大可能的性能提升空间和详细的优化方案, 但增加编译器与平台的组合往往会增加无法计量的分析工作量.为此, 提出了一种基于峰值架构的面向跨平台跨编译器分析方法.基于峰值架构集为目标编译器构建理想性能空间, 结合细粒度优势优化定位技术为目标编译器提供优势优化选项和优化方向, 并实现编译器优化.最后通过实验验证了该分析技术的实用性与普适性, 并为Intel平台上的目标编译器gcc提供了优化方向.

关键词: 编译器优化, 峰值架构, 理想性能空间, 优势优化选项, 优化方向

Abstract: Compiler performance is the embodiment that computer system architecture makes full use of its advantages. Compiler optimization is influenced by the machine platform and compiler characteristics. Compiler analysis is carried out between the target compiler and the multiple reference compiler,  and the target platform and the multiple reference platform,  that is to say,  the combination of the compiler and the platform is the foundation of the analysis. Only in the circumstance of multiple combinations,  we can provide the maximum possibility of performance room for improvement and prioritization schemes in detail for the target compiler optimization. However,  adding to the combination of compiler and platform will add to the analysis amount of work which is unable to measure in most cases. For this purpose,  one kind of analytical technique in face of cross-platform and cross-compiler on the strength of the peak value architecture is put forward. On the strength of the peak value architecture set,  we structure the ideal performance space for the target compiler. In the combination of the advantage of fine grit,  we optimize the location technique,  and provide the optimization options with advantages and optimized direction for the target compiler,  so as to implement compiler optimization. In the end,  by means of experiments that we have carried out,  we verify the practical nature and pervasive nature of this analytical technique,  what is more,  we provide the optimized direction for the target compiler (gcc) on Intel platform.

Key words: compiler optimization, peak value architecture, ideal performance space, optimization options with advantages, optimized direction