标题: | 产生内嵌式系统程式码时位址暂存器的配置 On Address Register Allocation for Code Generation of Embedded Systems |
作者: | 卢炫廷 Shuan-Ting Lu 周景扬 Jing-Yang Jou 电子研究所 |
关键字: | 位址暂存器的配置;内嵌式系统程式码;回圈;address register allocation;the embedded system;loop code generation;code generation for the loop;the reduction on code size;address generation unit (AGU);scheduling |
公开日期: | 1999 |
摘要: | 近年来内嵌式系统(一个中央处理器搭配唯读记体和随机存取记忆体的设计方式,控制处理器的程式码存在唯读记忆体中)的设计很盛行。由于在晶片上的储存空间有限,使得程式码的大小成为一个很重要的议题。除了储存空间的限制之外,程式码的大小也影响了执行此程式码时表现的效能。 在这篇论文中,我们提了一个演算法来减少程式码中回圈部份程式码的大小。所提的演算法可以得到在有限数目的位址暂存器的条件下,与不同数目位址暂存器对应的各个最佳位址暂存器的配置方式。从实验的结果可以看出对某些程式码而言其大小可以被明显地缩小。但是对一些被公认验证DSP的程式码就没有很明显的效果,原因是那些被公认验证DSP的程式码已经是最佳化的结果了。在得到不同位址暂存器数目下的最佳位址暂存器分配方式之后,程式编译器就可以利用它来有所选择,产生执行起来效能较佳的内嵌式系统程式码。 The embedded system design prevails in recent years. The code size becomes an important issue because of the limited storage capacity on the chip. Besides, it may affect the performance of the execution for the function. In this thesis, we propose an algorithm to reduce the code size in the loop segments. The proposed algorithm can find the optimal address register allocation for loop codes subject to the constraints on the number of address registers. The experimental results show significant reductions on the code size for some codes. However, the algorithm doesn’t improve the DSP’s benchmark circuits very much because those codes are already well written. The compiler can therefore use the technique to produce more efficient codes for the embedded systems. 2 Previous Work 5 2.1 The Address Generation Unit (AGU) 5 2.2 Researches on the Straight-line Code 7 2.3 Researches on the Loop Code 9 2.4 Conclusions and Critics 11 3 The Definition of the Problem 13 3.1 The Problem’s Definition 13 3.2 The Algorithm’s Assumptions 16 4 The Algorithm 17 4.1 The Access Graph 18 4.2 The Dependency Graph 19 4.3 The Operational Sequence 19 4.3.1 Find the Ideal AR Allocation 22 4.3.1.1 Initial Allocation 22 4.3.1.2 Build 0-Cost_loop Address Transition Graph (CATG) 22 4.3.1.3 Extract 0-Cost_iter Paths from the CATG 23 4.3.2 The Merging Process 28 4.4 After the Merging Process 31 5 The Experimental Result 33 6 The Conclusions and Future Work 39 |
URI: | http://140.113.39.130/cdrfb3/record/nctu/#NT880428014 http://hdl.handle.net/11536/65646 |
显示于类别: | Thesis |