摘要: 针对基础数学库中的寄存器分配特点,提出一种基于多级分层策略的寄存器分配策略。考虑各类寄存器的使用特点,采用多级分层模型,合理地使用寄存器资源,缓解基础数学中寄存器资源不足的情况,减少甚至避免寄存器分配过程中产生的溢出,达到提高数学库性能的目的。实验结果证明,该分配策略能够将数学库中的函数性能提高6%以上。
关键词:
数学库,
寄存器分配,
访存,
层次结构,
性能优化,
溢出
Abstract: Aiming at the characteristic of register allocation in base mathematics library, this paper presents a method of register allocation based on the strategy of delamination and multi-level. Considering the characteristic of the different registers, the method adopts the multi-layer model and uses the registers reasonably. The measure can ease the situation of register resource inefficiency at a larger-extent, reduce or avoid the appearance of spilling out in the process of register allocation, sequentially upgrade the performance of the base mathematics library. Experimental result indicates that the allocation strategy can optimize the performance of the library at the degree of 6%.
Key words:
mathematics library,
register allocation,
memory access,
hierarchy architecture,
performance optimization,
spilling out
中图分类号:
郭正红, 郭绍忠. 基础数学库中的层次结构寄存器分配策略[J]. 计算机工程, 2012, 38(24): 266-268.
GUO Zheng-Gong, GUO Chao-Zhong. Register Allocation Strategy for Hierarchy Structure in Base Mathematics Library[J]. Computer Engineering, 2012, 38(24): 266-268.