北航编译大作业

上传者: hahajinbu | 上传时间: 2019-12-21 19:49:55 | 文件大小: 1.24MB | 文件类型: zip
小编译器,北航编译的大作业高难度,扩充C0文法,最后得分不高,只有86,完成的部分有词法分析、语法分析、语义分析以及代码生成以及部分的优化。优化部分因为时间来不及,所以只写了算法在上面,实际上有很多错误,是在最后测试的时候才改的……所以参考这部分的时候要特别特别慎重。 codeblocks编写。

文件下载

资源详情

[{"title":"( 74 个子文件 1.24MB ) 北航编译大作业","children":[{"title":"测试程序","children":[{"title":"e4.txt <span style='color:#111;'> 175B </span>","children":null,"spread":false},{"title":"e2.txt <span style='color:#111;'> 142B </span>","children":null,"spread":false},{"title":"e1.txt <span style='color:#111;'> 88B </span>","children":null,"spread":false},{"title":"4.txt <span style='color:#111;'> 511B </span>","children":null,"spread":false},{"title":"3.txt <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"5.txt <span style='color:#111;'> 191B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"e3.txt <span style='color:#111;'> 134B </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 178B </span>","children":null,"spread":false},{"title":"e5.txt <span style='color:#111;'> 136B </span>","children":null,"spread":false}],"spread":true},{"title":"文档","children":[{"title":"申优文档.docx <span style='color:#111;'> 726.51KB </span>","children":null,"spread":false},{"title":"编译课程设计文档.doc <span style='color:#111;'> 210.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"源代码","children":[{"title":"compiler_CBType","children":[{"title":"test6.txt <span style='color:#111;'> 107B </span>","children":null,"spread":false},{"title":"testopti.txt <span style='color:#111;'> 114B </span>","children":null,"spread":false},{"title":"midcode_use.h <span style='color:#111;'> 104B </span>","children":null,"spread":false},{"title":"test15.txt <span style='color:#111;'> 115B </span>","children":null,"spread":false},{"title":"optoasm.cpp <span style='color:#111;'> 66.75KB </span>","children":null,"spread":false},{"title":"test.txt <span style='color:#111;'> 306B </span>","children":null,"spread":false},{"title":"12061025_token.txt <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"test4.txt <span style='color:#111;'> 514B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"stdafx.o <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"parse.o <span style='color:#111;'> 66.54KB </span>","children":null,"spread":false},{"title":"tempprint.o <span style='color:#111;'> 26.12KB </span>","children":null,"spread":false},{"title":"optoasm.o <span style='color:#111;'> 92.25KB </span>","children":null,"spread":false},{"title":"asm.o <span style='color:#111;'> 93.36KB </span>","children":null,"spread":false},{"title":"main.o <span style='color:#111;'> 46.24KB </span>","children":null,"spread":false},{"title":"midcode_use.o <span style='color:#111;'> 12.44KB </span>","children":null,"spread":false},{"title":"optimize.o <span style='color:#111;'> 66.51KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"test.txt <span style='color:#111;'> 231B </span>","children":null,"spread":false},{"title":"12061025_token.txt <span style='color:#111;'> 316B </span>","children":null,"spread":false},{"title":"compiler_CBType.exe <span style='color:#111;'> 1.23MB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"optimiddercode.txt <span style='color:#111;'> 239B </span>","children":null,"spread":false},{"title":"test14.txt <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"test11.txt <span style='color:#111;'> 207B </span>","children":null,"spread":false},{"title":"compiler_CBType.cbp <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"testerror.txt <span style='color:#111;'> 136B </span>","children":null,"spread":false},{"title":"test5.txt <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"testnew2.txt <span style='color:#111;'> 673B </span>","children":null,"spread":false},{"title":"doxygen","children":[{"title":"doxyfile <span style='color:#111;'> 10.39KB </span>","children":null,"spread":false}],"spread":false},{"title":"test2.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"parse.cpp <span style='color:#111;'> 60.78KB </span>","children":null,"spread":false},{"title":"test12.txt <span style='color:#111;'> 136B </span>","children":null,"spread":false},{"title":"test3.txt <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"t.txt <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 220B </span>","children":null,"spread":false},{"title":"test9.txt <span style='color:#111;'> 389B </span>","children":null,"spread":false},{"title":"a.txt <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"asm.h <span style='color:#111;'> 330B </span>","children":null,"spread":false},{"title":"error.h <span style='color:#111;'> 1022B </span>","children":null,"spread":false},{"title":"test13.txt <span style='color:#111;'> 148B </span>","children":null,"spread":false},{"title":"midcode.txt <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"optimize.cpp <span style='color:#111;'> 45.92KB </span>","children":null,"spread":false},{"title":"asm.obj <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"compiler_CBType.cscope_file_list <span style='color:#111;'> 407B </span>","children":null,"spread":false},{"title":"compiler_CBType.depend <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"testnew3.txt <span style='color:#111;'> 681B </span>","children":null,"spread":false},{"title":"asm.cpp <span style='color:#111;'> 65.98KB </span>","children":null,"spread":false},{"title":"asm.asm <span style='color:#111;'> 5.63KB </span>","children":null,"spread":false},{"title":"test8.txt <span style='color:#111;'> 185B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 10.40KB </span>","children":null,"spread":false},{"title":"compiler_CBType.layout <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"test7.txt <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"optimize.h <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"testnew.txt <span style='color:#111;'> 621B </span>","children":null,"spread":false},{"title":"tempprint.h <span style='color:#111;'> 117B </span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'> 237B </span>","children":null,"spread":false},{"title":"asm.exe <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"test10.txt <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"test1.txt <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"optiasm.asm <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"tempprint.cpp <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"midcode_use.cpp <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"define.h <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • qq_36682744 :
    代码生成方面学到了
    2018-12-28
  • weixin_38247177 :
    可还行,有文档就好了
    2018-12-10
  • hahahahaji :
    挺好的,学习了一手
    2017-11-20
  • qq_30822555 :
    学长有没有可以运行的版本?不带优化也行。
    2017-06-29
  • Bleachswh :
    大哥,能把文法放上去看看吗?注释又不多,让我怎么整啊!
    2015-11-30

免责申明

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