- 本项目为NJU2019年春季编译原理实验,目标是编写一个C--编译器
- 实验一:词法分析与语法分析
- 编写一个程序对使用C--语言书写的源代码进行词法分析和语法分析(C--语言的文法参见附录A) ,并打印分析结果。
- 实验二:语义分析
- 在词法分析和语法分析程序的基础上编写一个程序,对C--源代码进行语义分析和类型检查,并打印分析结果。
- 实验三:中间代码生成
- 在词法分析、语法分析和语义分析程序的基础上, 将C源代码翻译为中间代码。
- 实验四:目标代码生成
- 在词法分析、语法分析、语义分析和中间代码生成程序的基础上,将C--源代码翻译为MIPS32指令序列(可以包含伪指令),并在SPIM Simulator上运行。
-
Notifications
You must be signed in to change notification settings - Fork 2
breadstory-x/Compilers
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Experiments in Principles and Techniques of Compilers(NJU编译原理实验)
Resources
Stars
Watchers
Forks
Releases
No releases published