期刊文献+

ASIP编译器设计和实现 被引量:1

An ASIP compiler design and implementation
下载PDF
导出
摘要 为了满足ASIP存储器约束和代码执行的实时性要求,提出一种同时考虑代码选择和寄存器分配的代码综合生成算法,同步处理代码生成的子问题。提出一种能描述ASIP寄存器复杂约束关系的数学模型;改进了传统的图染色算法,将寄存器分配问题转化为对有向数据相关图的简化问题。应用算法构造了一个编译器后端,测试表明,和传统的分步优化算法相比,降低了目标代码的空间尺寸,减少了寄存器溢出的几率。 A new code-generation algorithm which handles code selection and register allocation simultaneously is presented to satisfy register restriction of application specific instruction processors (ASIPs) and real-time requirement from applications. A model is presented to describe the complicated restrictions among registers of ASIP register file in this paper. The traditional graph-coloring algorithm is improved to be adapted to ASIP according to this model. The register allocation is translated into how to simplify this graph. At last the algorithm is applied to an ASIP compiler. Experimental results show it has better performance of code-generation and less register spilling than traditional code-generation algorithm.
出处 《电路与系统学报》 CSCD 北大核心 2009年第6期59-62,58,共5页 Journal of Circuits and Systems
基金 国家863资助项目(2005AA1Z1271)
关键词 专用指令处理器编译器 代码生成 ASIP寄存器模型 改进图染色算法 ASIP compiler code generation ASIP register model improved graph-coloring algorithm
  • 相关文献

参考文献9

  • 1C Latter, V, Adve. LLVM: A compilation Framework for lifelong program analysis and transformation [A]. In proceedings of the 2004international symposium on code generation and optimization (CGO'04) [C]. 2004-03.
  • 2H Mossenbock, M Pfeiffer. Linear scan register allocation in the context of ssa form and register constraints [A]. In CC'02: Proceedings of the 11^th International Conference on Compiler Construction [C]. 2002. 229-246.
  • 3A V Aho, S C Johnson. Optimal code generation for expression trees [A]. Proceedings of seventh annual ACM symposium on Theory of computing [C]. 1976. 207-217.
  • 4R Leupers. Code selection for media processors with SIMD instructions [A]. Design Automation & Test in Europe [C]. 2000. 219-226.
  • 5G Araujo, S Malikaraujo. Code generation for fixed-point DSPs [A]. ACM Transactions on Design Automation of Electronic Systems [C]. New York: ACM, 1998. 136-161.
  • 6J Bruno, R Sethi. Register allocation for a one-register machine [R]. Technical report No. 157. USA, Pennsylvania State University: Computer Science Dept, 1974.
  • 7A V Aho, R Sethi, J D Ullman, et al. Compiler: principles, techniques and tools [M]. Boston: Addison-Wesley Longman Publishing Co. Inc, 1986.
  • 8P Briggs. Register allocation via graph coloring. Techniqual Report [D]. USA: RICE University, 1992.23-32.
  • 9F M Pereira, J Palsberg. Register Allocation via Coloring of Chordal graphs [A]. Proceedings of the 3rd Asian Symposium on Programming Languages and Systems [C]. 2005. 128-145.

同被引文献11

引证文献1

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部