基于改进图染色算法的ASIP寄存器分配器  被引量:2

ASIP register allocator based on improved graph-coloring algorithm

在线阅读下载全文

作  者:任坤[1] 严晓浪[1] 孙玲玲[1] 翁延玲[1] 

机构地区:[1]浙江大学超大规模集成电路设计研究所,浙江杭州310027

出  处:《浙江大学学报(工学版)》2010年第12期2309-2313,共5页Journal of Zhejiang University:Engineering Science

基  金:国家"863"高技术研究发展计划资助项目(2005AA1Z1271)

摘  要:针对传统的图染色算法很难为不规则结构的专用指令处理器(ASIP)生成优化代码的问题,提出一种能描述ASIP寄存器复杂约束关系的数学模型;改进了传统图染色算法,通过生命周期分析,将各种分配约束限制在一张有向数据相关图中,将寄存器分配问题转化为对有向数据相关图的简化问题;应用改进图染色算法构造了一个ASIP编译器.测试表明:和传统的图染色算法相比,改进图染色算法能充分地考虑寄存器之间的相互约束,降低了目标代码的空间尺寸,减少了寄存器的溢出.A model was presented to describe the complicated restrictions among registers of application specific instruction processor(ASIP)register file,considering that the traditional graph-coloring register allocation cannot produce optimal code for ASIP with irregular structure.The traditional graph-coloring algorithm was improved to be adapted to ASIP according to this model.In the new algorithm,a directed interference graph was built by analyzing the variables'live range and register constraints.The register allocation was translated into how to simplify this graph.At last the algorithm was applied to an ASIP compiler.Experimental results show that the improved algorithm has better performance of codegeneration and less register spilling than the traditional code-generation algorithm.

关 键 词:寄存器分配 ASIP寄存器模型 图染色算法 

分 类 号:TP314[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象