编译原理辅助教学件的设计.docVIP

  1. 1、本文档共15页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  5. 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  6. 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  7. 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  8. 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
编译原理辅助教学件的设计

摘要 编译原理课程是全国高等院校计算机系各专业必修的专业技术基础课程。这门课程具有原理性强、概念多、理论与实践结合紧密等特点。为了提高教学质量和工作效率,将计算机辅助教学引入该课程的教学环节中是非常有必要的。整个软件分为两个部分,分别用于PL/0演示和教学练习解题。教学练习系统包括了一下6个部分:语法基础部分、词法分析、语法部分、中间代码生成、基本块划分、基本块内的优化。我所要做的工作内容主要有:PL/0演示部分的功能完善和错误纠正;教学练习部分中基本块内的优化,实现由四元式向DAG图的转化。 编译原理辅助教学软件的设计充分利用Visual C++.Net开发环境的底层控制能力和C++高级语言,C++语言中的封装、继承等概念使得编程实现简单,逻辑清楚。该软件可辅助教师教学,也有利于学生理解编译原理课程中的基本原理,同时也可以作为课程的配套练习工具。 关键字:基本块内的优化,面向对象技术,编译原理 Abstract As we all known, there are thousands of computer language existing in the world. So many languages could be applied in the computer by reason of compiler program. ‘Compiler Principle’ is an important special course for the computer major, particularly for software major of computer department .In order to provide students with a straight and explicit understanding of complier process of senior language , we developed the computer-assisted software of complier program to help in the class. This software is consisted of two parts: one is CAI (Computer-Aided Instruction) of PL/0, the other is an exercise system for teachers and students. The exercise system is consisted of five parts: Base Syntax Analysis, Lexical Analysis, Syntax Analysis, Intermediate Code Generation, Basic Block Partitioning and Basic block in the optimization . Most of my work involve: PL / 0 perfect demonstration of the function and error correction; part of teaching practice in the basic block optimization, and from four formula to the DAG graphic. Computer Assisted Instruction of Compilation, taking full advantage of the basal powerful control ability of Visual C++.Net and C++, is a good assistant software helpful for students to study and understand the course of Compiler Principle clearly. It could be used not only for teacher’s illustration in class, but also for students’ exercise after class. Key board: Basic block in the optimization, Object-Oriented Programming, Compiler Principle 第一章 绪论 1.1 编译原理辅助教学软件的设计背景 本系统以编译原理为基础、

文档评论(0)

qiwqpu54 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档