欢迎来到天天文库
浏览记录
ID:35150243
大小:1.99 MB
页数:61页
时间:2019-03-20
《浅谈asm05汇编器的设计与实现》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、复旦大学硕士学位论文ASM05汇编器的设计与实现姓名:齐歆瑜申请学位级别:硕士专业:计算机系统结构指导教师:涂时亮20090426ASM05汇编器的设计与实现摘要【摘要】汇编器有着悠久的历史,最早的汇编器诞生于1940年。作为计算机编译工具链中不可或缺的一部分,汇编器经历了长期的发展。汇编器的编写理论也随着汇编器的日益完善而逐步形成,目前已经十分成熟。当今芯片产业发展迅速,出现了一个嵌入式处理器研究与设计的热潮。由于需要为新兴的嵌入式产品开发编译工具链,因此古老而成熟的汇编器理论在当今依然有着重要的意义。然而,传统汇编器理论虽然对于汇编器初期的
2、设计与开发有着一套成熟的指导意见,但是对于汇编器后期的维护与改进的指导却存在着缺失。这在当今商业化的时代里是一个盲点,因为作为产品的汇编器,势必将频繁应对用户需求的变更。为此,本文结合传统汇编器理论,提出一种指令特性可扩展的汇编器体系结构及相关理论,弥补了传统汇编器理论中的不足。采用该体系结构的汇编器,有着易维护的特点,能够做到在不影响总体结构的基础上,对功能进行频繁增改。并且,本文将此体系结构应用于ASM05汇编器开发项目,显著降低了其后期维护的难度。ASM05汇编器在后期维护中加入了初期设计时未被考虑的宏汇编功能和文件包含功能,由此验证了指
3、令特性可扩展的汇编器体系结构的有效性。同时,本文详细探讨了ASM05汇编器的实现细节,因此能够作为指导汇编器设计与实现的一个实例。关键词:ASM05,汇编器,指令特性可扩展,宏汇编,文件包含中图分类号:TP313ASM05汇编器的设计与实现【ABSTRACT】Thedevelopmentofassemblerhasalonghistory.Thefirstassemblerappearedin1940.Assemblerisoneessentialpartofcompilertoolchainofacomputer.Now,thetheoryo
4、fassemblerisveryripe.Today,chipindustryisdevelopingfastandmuchmorepeopleareengagedintheresearchofembeddedsystemprocessor.Thetraditionaltheoryofassemblerstillplaysallimportantrolebecausemanynewassemblersshouldbeimplementedformanynewembeddedsystemprocessors.Thoughthetraditiona
5、ltheoryofassemblercangiveeffectivedirectiontodesignanddevelopmentofassembler,itdoesn’tmentionanythingaboutthemaintenanceofassembler.Thisisablindspotinthecommercialagebecausetheassembler,asaproduction,mustbeimprovedaccordingtotheconsumer’Sadvicefromtimetotime.Forthis,thispape
6、rpresentsnewassemblerarchitecture,afeature—extensibleassemblerarchitecture,whichcompletesthetraditionaltheoryonmaintenanceofassembler.Sucharchitectureiseasytomaintain.ItiseasytomodifythefunctionoftheassemblerwithoutmakegreatchangeonthearchitectureiftheassemblerUSeSsucharchit
7、ecture.Furthermore,thispaperUSeSsucharchitecturetoimplementtheASM05assemblerandvalidatestheefficiencyofsucharchitectureonmaintenancebyaddingMACROandINCLUDESdirectivestoASM05assembler.Thesetwofunctions,MACROandINCLUDE,werenotconsideredwhendesigningtheASM05assembleratfirst.Bes
8、ides,thispaperpresentsthedetailoftheimplementationofASM05assembler.KeyWords
此文档下载收益归作者所有