摘要
编译器性能是计算机系统架构充分发挥优势的体现,编译器优化受机器平台与编译器特征的影响.编译器分析是在目标编译器与多参照编译器、目标平台与多参照平台之间进行的,即编译器与平台的组合是分析的基础.只有在多组合情况下才能为目标编译器优化提供最大可能的性能提升空间和详细的优化方案,但增加编译器与平台的组合往往会增加无法计量的分析工作量.为此,提出了一种基于峰值架构的面向跨平台跨编译器分析方法.基于峰值架构集为目标编译器构建理想性能空间,结合细粒度优势优化定位技术为目标编译器提供优势优化选项和优化方向,并实现编译器优化.最后通过实验验证了该分析技术的实用性与普适性,并为Intel平台上的目标编译器gcc提供了优化方向.
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.
作者
赖庆宽
吕方
贺春林
何先波
冯晓兵
Lai Qingkuan;Lü Fang;He Chunlin;He Xianbo;Feng Xiaobing(State Key Laboratory of Computer Architecture(Institute of Computing Technology,Chinese Academy of Sciences),Beijing 100190;Institute of Computing Technology,Chinese Academy of Sciences,Beijing 100190;University of Chinese Academy of Sciences,Beijing 100049;School of Computer Science,China West Normal University,Nanchong,Sichuan 637009)
出处
《计算机研究与发展》
EI
CSCD
北大核心
2021年第3期668-680,共13页
Journal of Computer Research and Development
基金
国家重点研发计划项目(2016YFB0200803)
CCF腾讯科研基金项目
国家自然科学基金项目(61802368,61521092,61432016,61432018,61332009,61702485,61872043)
西华师范大学英才基金项目(17YC149)
南充市重大科技成果转换项目(18SXHZ0386)
教育部产学合作协同育人项目(201702049002)。
关键词
编译器优化
峰值架构
理想性能空间
优势优化选项
优化方向
compiler optimization
peak value architecture
ideal performance space
optimization options with advantages
optimized direction