摘要
鉴于编译器在系统开发中日趋重要的地位和CoSy在编译器开发中的良好应用前景,文中引入并介绍了基于CoSy的编译器开发的整体流程,并且指出了开发过程中遇到的重点问题和难点问题。文章对编译器开发的主要工作和内容进行介绍,对编译过程进行详细分析,其中对编译器中间代码的优化进行了详细讲解,对窥孔优化思想做了详细介绍。最后,在文章末尾引入具体的开发实例并且结合窥孔优化思想进行具体分析,从而更好地体现基于CoSy的编译器开发方法的优势。
In view of the compiler in system development is the important position and the good application prospect of CoSy in compil ers, introduce and propose the CoSy compiler based on the development of the whole process and point out the keys and difficulties of the development process. The compiler development work and the main content is introduced. Analyze the compile process in detail, including among the compiler code optimization for detailed explanation. Finally, introduce the development of specific end examples and combine peep hole optimization idea for specific analysis, and better reflect the advantages of the method based on the CoSy compiler develop ment.
出处
《计算机技术与发展》
2013年第3期61-64,共4页
Computer Technology and Development
基金
核高基重大专项基金资助项目(2009ZX 01034-001-002-003)
中央高校基本科研业务费专项资金(GK201002011)
陕西师范大学研究生培养创新基金(2012CXS056)
关键词
COSY
CoSy中级中间表示
编译器开发环境
cgd文件
DFG
中间代码优化
窥孔优化
CoSy
CCMIR ( common CoSy medium- level intermediate representation )
compiler development environment
cgd file
DFG
intermediate language code optimization
peep hole optimization