计算机工程 ›› 2012, Vol. 38 ›› Issue (24): 266-268.doi: 10.3969/j.issn.1000-3428.2012.24.063

• 开发研究与设计技术 • 上一篇    下一篇

基础数学库中的层次结构寄存器分配策略

郭正红,郭绍忠   

  1. (信息工程大学信息工程学院,郑州 450002)
  • 收稿日期:2012-02-20 修回日期:2012-04-13 出版日期:2012-12-20 发布日期:2012-12-18
  • 作者简介:郭正红(1982-),男,工程师、硕士研究生,主研方向:高性能计算;郭绍忠,副教授

Register Allocation Strategy for Hierarchy Structure in Base Mathematics Library

GUO Zhen-hong, GUO Shao-zhong   

  1. (Institute of Information Engineering, Information Engineering University, Zhengzhou 450002, China)
  • Received:2012-02-20 Revised:2012-04-13 Online:2012-12-20 Published:2012-12-18

摘要: 针对基础数学库中的寄存器分配特点,提出一种基于多级分层策略的寄存器分配策略。考虑各类寄存器的使用特点,采用多级分层模型,合理地使用寄存器资源,缓解基础数学中寄存器资源不足的情况,减少甚至避免寄存器分配过程中产生的溢出,达到提高数学库性能的目的。实验结果证明,该分配策略能够将数学库中的函数性能提高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

中图分类号: