计算机应用与软件
計算機應用與軟件
계산궤응용여연건
COMPUTER APPLICATIONS AND SOFTWARE
2013年
12期
215-217,254
,共4页
姜军%王超%尉红梅
薑軍%王超%尉紅梅
강군%왕초%위홍매
寄存器分配%局部寄存器需求预估%胖点%SWCC
寄存器分配%跼部寄存器需求預估%胖點%SWCC
기존기분배%국부기존기수구예고%반점%SWCC
Register allocation%Local register demand estimation%Fat point%SWCC
寄存器作为机器硬件结构中有限的宝贵资源,使得寄存器分配技术成为编译器最为关键的优化技术之一。寄存器分配效率提高的关键在于如何最大限度地减少溢出带来的开销。针对这一问题,提出一种基于局部寄存器需求预估和胖点优化的局部寄存器分配优化策略,并在国产CPU SW1600的配套编译器SWCC上实现了该算法。实验表明,优化效果明显。
寄存器作為機器硬件結構中有限的寶貴資源,使得寄存器分配技術成為編譯器最為關鍵的優化技術之一。寄存器分配效率提高的關鍵在于如何最大限度地減少溢齣帶來的開銷。針對這一問題,提齣一種基于跼部寄存器需求預估和胖點優化的跼部寄存器分配優化策略,併在國產CPU SW1600的配套編譯器SWCC上實現瞭該算法。實驗錶明,優化效果明顯。
기존기작위궤기경건결구중유한적보귀자원,사득기존기분배기술성위편역기최위관건적우화기술지일。기존기분배효솔제고적관건재우여하최대한도지감소일출대래적개소。침대저일문제,제출일충기우국부기존기수구예고화반점우화적국부기존기분배우화책략,병재국산CPU SW1600적배투편역기SWCC상실현료해산법。실험표명,우화효과명현。
Register allocation has become one of the most important optimisation techniques for compiler when considering the register as the limited and valuable resources in hardware architecture of computer .The key to enhance the efficiency of register allocation relies on how to reduce to the greatest extent the costs incurred from overflow .To deal with it , we propose a local register allocation optimisation strategy , which is based on local register demand estimation and fat point optimisation .On SWCC compiler which is the complementary support to the homemade CPU SW1600, this algorithm is implemented .Experimental results show that its optimisation effect is evident .