期刊文献+

基于两类寄存器互为缓存方法的DSP寄存器分配溢出处理优化算法 被引量:3

Optimization Algorithm of Complementary Register Usage Between Two Register Classes in Register Spilling for DSP Register Allocation
下载PDF
导出
摘要 寄存器是处理器硬件中有限的宝贵资源,这使得寄存器分配成为编译器中最为关键的过程之一。影响寄存器分配效果的关键因素之一是溢出带来的访存开销。针对DSP处理器具有两类通用寄存器的情况,以图着色全局寄存器分配方法为基本方法,提出两类寄存器间的一种互补利用策略和相应的寄存器溢出优化算法。该策略改进了传统图着色方法,通过生命周期分析的结果,将同类寄存器分配候选者之间的冲突关系和不同类寄存器分配候选者之间的冲突关系区分开来,并把它们表示在一张无向图中。与传统的图着色算法相比,改进的算法能充分考虑不同类寄存器之间的相互约束关系,减少寄存器溢出时的访存操作,从而有利于提高代码的性能。 Register allocation has become one of the most important optimization techniques for compiler for that registers are limited and valuable resources in hardware architecture of computer.One of the key factors affecting the results of register allocation is the access and storage costs incurred from spilling signed registers.For DSP architectures with two classes of general-purpose registers,this paper proposed a complementary utilization strategy between the registers and a corresponding register spilling optimization algorithm on the basis of graph coloring register allocation method.Through distinguishing the interference between candidates of the same register class from those of different register classes,an undirected graph is built by improving the analysis for variables’live ranges.Compared with the conventional graph coloring register allocation,the improved algorithm fully consideres the interferences among the register allocation candidates for two register classes,thus achiving less memory access operations in register spilling and higher code performance.
作者 邱亚琼 胡勇华 李阳 唐镇 石林 QIU Ya-qiong;HU Yong-hua;LI Yang;TANG Zhen;SHI Lin(School of Computer Science and Engineering,Hunan University of Science and Technology,Xiangtan,Hunan 411201,China)
出处 《计算机科学》 CSCD 北大核心 2019年第6期196-200,共5页 Computer Science
基金 国家自然科学基金(61308001) 湖南省自然科学基金(2017JJ3087)资助
关键词 寄存器分配 编译器 图着色方法 寄存器溢出 优化 Register allocation Compiler Graph coloring algorithm Register spilling Optimization
  • 相关文献

参考文献5

二级参考文献59

  • 1杨书鑫,张兆庆.全局指令调度综述[J].计算机工程与应用,2004,40(21):44-48. 被引量:1
  • 2许振新,边凯.Alpha:句号还是转折号?[J].中国计算机用户,2004(34). 被引量:1
  • 3AHO A V, SETHI R, ULLMAN J D, et al. Compiler: principles, techniques and tools[M]. Boston: AddisonWesley Longman Publishing Co. , Inc, 1986.
  • 4BRUNO J, SETHI R. Register allocation for an oneregister machine[R]. Pennsylvania: Pennsylvania State University, 1974.
  • 5CHAITIN G J. Register allocation and spilling via graph coloring[J]. ACM SIGPLAN Notices, 1982, 17(6) : 98 - 105.
  • 6BRIGGS P, COOPER K D, TOREZON L. Improvements to graph coloring register allocation[J]. ACM Transactions on Programming Languages and Systems, 1994. 16(3): 428 - 455.
  • 7LIAO S, DEVADAS S, KEUTZER K, et al. Code optimization techniques for embedded DSP microprocessors [C]// Design Automation Conference. [S. l. ]: [s. n. ], 1995:599 - 604.
  • 8LEUPERS R. Code optimization techniques for embedded processors [M]. Norwell: Kluwer Academic Publishers, 2000.
  • 9KUDRIAVTSEV A, KOGGE P. Generation of permutations for SIMD processors [C]// Proceedings of the 2005 ACM SIGPLAN/SIGBED conference on Languages, Compilers, and Tools for Embedded Systems. [ S. l. ].[s. n. ], 2005:147 - 156.
  • 10BRIGGS P. Register allocation via graph coloring [D]. Houston, USA: RICE University, 1992:23-32.

共引文献8

同被引文献39

引证文献3

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部