摘要
根据编译技术的最新进展及目前广泛使用的各种编译器框架,提出基于插件的编译原理课程实验设计的思想与方法,解除后端实践依赖于前端分析结果的限制,使学生能够利用现有的编译器框架直接进行后端语义分析、代码优化和代码生成等方面的实践;同时,文章介绍了基于插件的编译原理课程实验设计的必要性、可能性,并以Phoenix编译器框架为例说明了该方案的可行性。
This paper proposes a new approach to design backend-oriented experiments based on the new compiler framework Phoenix,which offers plug-in toolkit enabling student to build code analysis and binary generation modules easily and quickly.We analyze the necessity and possibility of designing experiments based on Phoenix's plug-in architecture in this paper,and some examples are given for reference.
出处
《计算机教育》
2011年第11期20-22,27,共4页
Computer Education