- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
简单微型编译器micro-x的设计与实现-design and implementation of simple micro - compiler micro - x
摘要摘要语言的编译器是非常复杂的系统程序,这种系统程序代码的长度可以从几千行到几百万行不等,所以编写甚至于读懂这样一个程序都不是一件容易的事情。但是几乎所有类型的计算都会使用到编译器,并且任何一个与计算机接触的专业人员都应该掌握编译器的基本结构和相应操作。因此,了解和掌握编译器的开发技术具有非常重要的实际意义。本论文所阐述的就是对编译器的开发技术这一课题的相关研究。本课题的研究目标是定义出一门微型高级程序设计语言——Micro-X语言,并用VisualStudio2008开发平台和C#语言编码实现该语言的编译程序——Micro-X编译器。Micro-X编译器的实现的理论基础是形式语言和自动机理论,参考常见编译器的功能和开发方法,实现Micro-X编译器的词法分析阶段设计、语法分析阶段设计、语义分析阶段设计、中间代码生成过程、运行时刻环境、目标代码生成等,并以可视化方式展现各个阶段的生成状态。各个阶段以模块化的形式完成,各模块都是以项目文件为单位来编译,最终生成Micro-X编译器的可执行文件。经过本课题的研究,对扩展名为.x的Micro-X语言源程序,实现了用命令行的形式调用Micro-X编译器对源程序进行编译,如果源程序中没有错误,则最终生成目标代码即80X86汇编代码。本课题最终实现了一个高效、无错、易操作、易检测的微型编译器,并且可以把编译器的各个阶段运行结果以可视化界面展示的形式表现出来,因此该编译器可应用在编译器相关课程的实践教学中。关键词:Micro-X语言,编译器,编译器可视化界面,代码优化IABSTRACTABSTRACTLanguagecompilerisaverycomplexsystemprograms,thelengthofsuchasystemcodecanbefromthousandstoseveralmillionsoflinesofthelinerange,soevenwriteaprogramtoreadisnoteasytodo.Butalmostalltypesofcalculationsareusedtothecompiler,andanycontactwiththecomputerprofessionalshouldmasterthebasicstructureofthecompilerandthecorrespondingoperations.Therefore,tounderstandandmasterthedevelopmentofcompilertechnologyhasveryimportantpracticalsignificance.Thisthesisiselaboratedinthedevelopmentofcompilertechnologyresearchthistopic.Theresearchprojectsgoalistodefineamicro-levelprogramminglanguage-Micro-Xlanguage.UsingVisualStudio2008developmentplatformandC#languagecompilerforthelanguage-Micro-Xcompiler.Micro-Xcompilerisbasedontherealizationofthetheoryofformallanguagesandautomatatheory,refertothefunctionofcommoncompileranddevelopmentmethodsinordertoachieveMicro-Xlexicalanalysisphaseofcompilerdesign,syntaxanalysisstagedesign,stagedesignsemanticanalysis,intermediatecodegenerationprocess,run-timeenvironment,thetargetcodegeneration,etc.,andtovisuallyshowthevariousstagesoftheformationofthestate.Variousstagesofcompletionofamodularform,themodulesareinunitsoftheprojectfiletocompile,andultimatelygenerateMicro-Xcompilerexecutablefile.AfterastudyofthissubjecttorealizetheformofthecommandlinecompilercalledMicro-X,andontheextension.XoftheMicr
您可能关注的文档
- 甲烷催化还原二氧化硫为元素硫催化剂的研究-study on catalysts for catalytic reduction of sulfur dioxide to elemental sulfur by methane.docx
- 甲型h1n1流感病毒致宿主细胞氧化损伤机制的分析-analysis of oxidative damage mechanism of host cells caused by influenza a ( h1n1 ) virus.docx
- 甲烷无氧芳构化mohzsm-5催化剂性能的研究-study on the performance of mohzsm - 5 catalyst for methane anaerobic aromatization.docx
- 甲型h1n1流感肺炎的早期预测分析及应用康复者血浆的疗效分析-analysis of early prediction of influenza a ( h1n1 ) pneumonia and analysis of curative effect of plasma application of recovered patients.docx
- 甲酯化桐油改性水性聚氨酯乳液的制备及性能分析-preparation and performance analysis of waterborne polyurethane emulsion modified by methyl esterification tung oil.docx
- 甲状腺癌螺旋ct与高频超声影像特征的对照分析-comparative analysis of spiral ct and high frequency ultrasound imaging features of thyroid carcinoma.docx
- 甲氧头孢中间体7-mac的合成工艺分析-analysis of synthesis technology of methoxycef intermediate 7 - mac.docx
- 甲状腺激素对成年大鼠前额叶内syntaxin-1表达的影响-effects of thyroid hormones on the expression of syntax in - 1 in the prefrontal lobe of adult rats.docx
- 甲状腺乳头状癌mlvd和vegfd的表达与颈淋巴结转移机制研究-expression of mlvd and vegfd in papillary thyroid carcinoma and its mechanism of cervical lymph node metastasis.docx
- 甲状腺乳头状癌nm23和bcl-2表达的临床意义-clinical significance of nm23 and bcl - 2 expression in papillary thyroid carcinoma.docx
- 简淡为美,萧散虚和——王宠书法研究-simplicity is beauty, xiao san is virtual harmony - study on wang chong's calligraphy.docx
- 简化的mimugps车载组合导航系统算法研究-research on simplified mimu gps vehicle integrated navigation system algorithm.docx
- 简析盗窃罪的刑法适用——以石柏魁北京故宫盗窃案为例分析-a brief analysis of the criminal law application of larceny —— taking the theft case of shi baikui's beijing forbidden city as an example.docx
- 简论西方现代艺术精神——以绘画为例-on the spirit of western modern art - taking painting as an example.docx
- 简青霉-生物炭联用去除废水中crvi 甲基橙 亚甲基蓝的研究-study on removal of crvi methyl orange methylene blue from wastewater by penicillium simplicissimum combined with biochar.docx
- 简述地质雷达在铁路隧道衬砌检测中应用-application of geological radar in railway tunnel lining inspection is briefly introduced.docx
- 简析客家民系法律文化传统——游离态的法律信仰家族精神与权威-a brief analysis of hakka's legal culture tradition - free legal belief, family spirit and authority.docx
- 简谐势中相对论玻色气体的分析-analysis of relativistic bose gas in simple harmonic potential.docx
- 简易单轴运动控制模块开发及其应用-development and application of simple uniaxial motion control module.docx
- 简约主义音乐的继承与拯救——解析约翰·亚当斯的后简约主义风格-inheritance and salvation of minimalist music —— analysis of john adams's post - minimalist style.docx
文档评论(0)