计算机应用与软件2026,Vol.43Issue(9):19-25,7.DOI:10.3969/j.issn.1000-386x.2026.09.003
基于重定位的快速寻址链接优化
RELOCATION-BASED LINK OPTIMIZATION FOR FAST ADDRESSING
摘要
Abstract
Presently,the majority of compiler optimization techniques primarily concentrate on the compilation phase,while optimization methods during the linking stage remain relatively scarce.This imbalance in focus has led to challenges in achieving optimal performance on certain specialized processor architectures.To address this predicament,a relocation-based link optimization for fast addressing approach is proposed in this research,encompassing three distinct optimization strategies:module-external global variable optimization,function jump optimization,and dynamic mode to static mode optimization.These strategies are meticulously designed to reduce memory access overhead,diminish instruction execution time,and alleviate the complexity associated with maintaining thread-local storage blocks.Experimental evaluations conducted on the SPEC 2006 benchmark demonstrate that when applied to the domestic Sunway processor,the proposed method achieves an average performance improvement of 3.66%and 1.50%,respectively on the SPECint 2006 and SPECfp 2006 benchmarks.关键词
GCC编译器/国产处理器/链接优化/重定位Key words
GCC compiler/Domestic processor/Link optimization/Relocation分类
信息技术与安全科学引用本文复制引用
姜军,黄亮明,羊瑞,李贺龙,朱肖炜..基于重定位的快速寻址链接优化[J].计算机应用与软件,2026,43(9):19-25,7.基金项目
科技部重点支持项目(GG20210701). (GG20210701)