期刊文献+

编译系统中间代码的一种抽象表示 被引量:3

An Abstract Intermediate Representation in Compilation Systems
下载PDF
导出
摘要 中间表示是提高编译器的可移植性和代码生成的有效性的关键技术.为提高编译成份的可复用性,简化编译器的构造,本文提出了一种描述程序语言抽象语法及编译器内部数据结构的抽象中间表示AIR(Abstract Inter-mediate Representation).AIR以代数数据类型为主体,并用面向对象特征对其进行扩展,从而使之具有简洁的语法,较强的表达能力、灵活性和可扩展性.AIR将抽象描述与其具体实现相分离,可方便地用不同的高级程序语言实现,从而有助于提高编译成份间的互操作性. The design of an intermediate representation is critical to compiler portability and code generation efficiency. In order to increase the reusability of compiler components, and to simplify the development process of compilers, the paper presents an abstract intermediate representation (AIR) that provides a concise notation for describing the abstract syntax of programming languages and the inner data structures of compilers. AIR integrates algebraic data types into the object-oriented paradigm and thus makes it have stronger expressive power,flexibility, and extensibility. AIR separates the abstract descriptions from the concrete implementation. This makes it easier to be implemented in different high-level languages and thus improves the interoperatibility of compiler components. We use AIR to simulate the core of the SUIF written in C + + . The result states that AIR has stronger expressive power and more compact syntax than the other languages for describing the abstract syntax of programming languages.
出处 《电子学报》 EI CAS CSCD 北大核心 2002年第12A期2134-2137,共4页 Acta Electronica Sinica
基金 国家自然科学基金(No.60083004)
关键词 中间表示 代数数据类型 面向对象 编译系统 编译器 intermediate representations algebraic datatypes object-orientation compiler systems
  • 相关文献

同被引文献16

  • 1White C,Quin L,Burman L.Mastering XML Premium Edition[M].周生炳,宋浩,肖伟,等,译.北京:电子工业出版社,2002.
  • 2王双庆,邢建春,王平,方中华.基于IEC61131-3的控制器组态软件开发[J].微计算机信息,2007,23(05S):56-58. 被引量:3
  • 3Debyo S, Vincent B, Yang Fan. Design Space Exploration for Sobel Application Using OpenlMPACT(Opensource Retargetable Compilation for VLIW Architecture)[EB/OL]. (2010-11-21). http://repository.gunadarma.ac.id/handle/123456789/2180?mode= full.
  • 4Alfred V A, Monica S L, Ravi S.编译原理[M].赵建华,郑滔,戴新宇,译.北京:机械工业出版社,2008.
  • 5Debyo S, Vincent B, Yang Fan, et al. Concept and Development of Modular VLIW Processor Based on FPGA[C]//Proc. of International Conference on Computer and Network Technology. Dijon, France: IEEE Press, 2010.
  • 6Steven S M.高级编译器设计与实现[M].赵建华,郑滔,译北京:机械工业出版社,2005.
  • 7P Marwedel,R Leupers.Retargetable Compiler Technology for Em- bedded Systems:Tools and Applications[M].Kluwer Academic,2001.
  • 8李欣,刘峰,龙腾.定点FFT在TS201上的高效实现[J].北京理工大学学报,2010,30(1):88-91. 被引量:13
  • 9郭书杰,马跃,王品.基于IEC61131-3的IL编译器的设计与实现[J].计算机工程与设计,2010,31(10):2300-2302. 被引量:4
  • 10张媛.堆栈在语法分析中的应用[J].天津科技,2014,41(4):20-22. 被引量:2

引证文献3

二级引证文献6

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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