编译原理简易C编译器

上传者: jemiesama | 上传时间: 2020-01-03 11:23:02 | 文件大小: 1.09MB | 文件类型: zip
只能实现斐波那契数列,没有实现pi.c,得分五分 上机大作业——简化C编译器实现 总体要求 一、要求实现的语言特性 1. 基本要求 1数据类型:int,char 2语句:赋值(=),if,while,for;赋值 循环 条件判断 3算术运算:+,-,*,/,%,++,--,&,|,^,~,<> 4关系运算:==,>,=,<=,!= 5逻辑运算:&&(与),||(或),!(非);构造与算数相同 6复合语句:{、}括起来的语句;要求识别 if、while中使用 7注释语句;识别注释 然后丢弃 8简单的输入输出 2. 选作功能 1数组,指针;数组怎么实现 第八章介绍数组的翻译 2函数 3其他特性(浮点运算、结构/类、连接C标准库等等) 生成的目标代码 生成x86汇编语言程序。;不要求二进制 由编译器编译成二进制 要求提交的内容 1C语言子集的描述:词法结构的正则表达式定义、语法结构的CFG定义。 ;简化子集的描述 2编译器源程序文本,包括Lex、Yacc等程序和C/C++程序。;两种语言工具 构造词法分和语法分析部分 passive generate 3编译器演示程序,可将C语言子集测试程序编译为目标代码——汇编程序,用汇编器转换为二进制程序后运行无误,如斐波那契数列程序,应能翻译为正确的汇编程序。

文件下载

资源详情

[{"title":"( 46 个子文件 1.09MB ) 编译原理简易C编译器","children":[{"title":"complier_第五次作业_小型C编译器","children":[{"title":"scan.v <span style='color:#111;'> 15.11KB </span>","children":null,"spread":false},{"title":"parse.y <span style='color:#111;'> 15.44KB </span>","children":null,"spread":false},{"title":"analyze.h <span style='color:#111;'> 314B </span>","children":null,"spread":false},{"title":"main.sdf <span style='color:#111;'> 2.44MB </span>","children":null,"spread":false},{"title":"main.opt <span style='color:#111;'> 51.50KB </span>","children":null,"spread":false},{"title":"scan.l <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false},{"title":"main.dsw <span style='color:#111;'> 533B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"main.vcxproj <span style='color:#111;'> 6.62KB </span>","children":null,"spread":false},{"title":"util.h <span style='color:#111;'> 650B </span>","children":null,"spread":false},{"title":"main.v12.suo <span style='color:#111;'> 22.50KB </span>","children":null,"spread":false},{"title":"main.ncb <span style='color:#111;'> 289.00KB </span>","children":null,"spread":false},{"title":"main.dsp <span style='color:#111;'> 4.11KB </span>","children":null,"spread":false},{"title":"main.plg <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"scan.h <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"编译原理大作业.pgp <span style='color:#111;'> 739B </span>","children":null,"spread":false},{"title":"symtab.c <span style='color:#111;'> 6.48KB </span>","children":null,"spread":false},{"title":"analyze.c <span style='color:#111;'> 7.94KB </span>","children":null,"spread":false},{"title":"util.c <span style='color:#111;'> 6.95KB </span>","children":null,"spread":false},{"title":"main.sln <span style='color:#111;'> 953B </span>","children":null,"spread":false},{"title":"UpgradeLog2.htm <span style='color:#111;'> 33.23KB </span>","children":null,"spread":false},{"title":"symtab.h <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"tmp.asm <span style='color:#111;'> 5.56KB </span>","children":null,"spread":false},{"title":"parse.c <span style='color:#111;'> 54.25KB </span>","children":null,"spread":false},{"title":"tmp.c <span style='color:#111;'> 637B </span>","children":null,"spread":false},{"title":"Backup1","children":[{"title":"main.sln <span style='color:#111;'> 953B </span>","children":null,"spread":false}],"spread":false},{"title":"CodeGen.c <span style='color:#111;'> 24.52KB </span>","children":null,"spread":false},{"title":"编译原理大作业.pgw <span style='color:#111;'> 448B </span>","children":null,"spread":false},{"title":"parse.h <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"Backup","children":null,"spread":false},{"title":"CodeGen.h <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"scan.c <span style='color:#111;'> 14.61KB </span>","children":null,"spread":false},{"title":"UpgradeLog.htm <span style='color:#111;'> 33.22KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"symtab.obj <span style='color:#111;'> 13.07KB </span>","children":null,"spread":false},{"title":"parse.obj <span style='color:#111;'> 74.78KB </span>","children":null,"spread":false},{"title":"CodeGen.obj <span style='color:#111;'> 73.72KB </span>","children":null,"spread":false},{"title":"main.ilk <span style='color:#111;'> 1.04MB </span>","children":null,"spread":false},{"title":"analyze.obj <span style='color:#111;'> 15.16KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 73.00KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 9.13KB </span>","children":null,"spread":false},{"title":"main.exe <span style='color:#111;'> 248.10KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false},{"title":"util.obj <span style='color:#111;'> 26.54KB </span>","children":null,"spread":false},{"title":"scan.obj <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"globals.h <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false},{"title":"parse.v <span style='color:#111;'> 49.78KB </span>","children":null,"spread":false},{"title":"tmp.txt <span style='color:#111;'> 7.09KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • qq_36805493 :
    还没看,不知道行不行
    2017-12-28

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明