“A portable compiler: theory and practice”的版本间的差异

来自Dennis的知识库
跳转到: 导航搜索
 
第19行: 第19行:
 
*  Another useful facility provided by the preprocessor is the ability to include compile-time libraries.
 
*  Another useful facility provided by the preprocessor is the ability to include compile-time libraries.
 
*  A third feature of the preprocessor is conditional compila- tion.
 
*  A third feature of the preprocessor is conditional compila- tion.
 +
 +
== The front ends ==
 +
 +
*  All front ends, independent of the language being compiled, produce a common intermediate code called EM, which is the assembly language for a simple stack machine. The EM machine is based on a memory architecture containing a stack for local variables, a (static) data area for variables de- clared in the outermost block and global to the whole pro- gram, and a heap for dynamic data structures.
 +
*

2017年5月8日 (一) 09:08的最后版本

[编辑] Overview of the amsterdam compiler kit

The tool kit consists of eight components:

• The preprocessor
• The front ends
• The peephole optimizer
• The global optimizer
• The back end
• The target machine optimizer
• The universal assembler/linker • The utility package

Amsterdam compiler kit.png

[编辑] The preprocessor

  • extend all the program- ming languages by adding certain generally useful facilities to them in a uniform way. One of these is a simple macro system,
  • Another useful facility provided by the preprocessor is the ability to include compile-time libraries.
  • A third feature of the preprocessor is conditional compila- tion.

[编辑] The front ends

  • All front ends, independent of the language being compiled, produce a common intermediate code called EM, which is the assembly language for a simple stack machine. The EM machine is based on a memory architecture containing a stack for local variables, a (static) data area for variables de- clared in the outermost block and global to the whole pro- gram, and a heap for dynamic data structures.
个人工具
名字空间

变换
操作
导航
工具箱