Font Size: a A A

Research And Application Of Key Technology In Integrated Development Environment On Assembly Language Teaching Platform

Posted on:2015-01-14Degree:MasterType:Thesis
Country:ChinaCandidate:S Q WangFull Text:PDF
GTID:2298330452950772Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the widespread use of mobile devices, Internet companies are competingwith each other for developing a variety of wearable mobile devices products.Researchers began to perform system programming in Assembly Language again.The demand for proficient people who are good at assembly language makesassembly language teaching been taken seriously in major universities. However, thelack of integrated development environment which is fully applicable to assemblylanguage teaching increases the difficulty of learning assembly language. For thissituation, the development of Microcomputer Principle Virtual Test Platform wasbased in this thesis, and a platform assisted assembly language teaching which is runon Windows platforms was designed and implemented. An integrated developmentenvironment which includes assembly language source code editing, compiling anddebugging was provided on the platform. Thus a visual and intuitive supplementaryteaching tool for assembly language programming courses teaching is provided on theplatform.This thesis mainly researched key technology used in Integrated DevelopmentEnvironment on Assembly Language Teaching Platform. The main works are asfollows:(1)Research on Lexical AnalysisThe advantages of Character-based matching algorithm for lexical analysis inhigh-level language program lexical analysis which has less keywords and morecustom symbols and the shortages in lexical analysis process of assembly languageprograms which has more keywords and less custom symbols are researched, thenlexical analysis program based on the first character of a word and the word lengthmatching is proposed for no macro assembler. With this analysis program, all systemkeywords will be divided into multiple tables firstly according to the first characterand the length of the words, and then the corresponding table will be searchedin the process of lexical analysis.(2) Research on Syntax Analysis After analyzing the traditional assembly language compiler which use two-passscan program, we find that the compiler also get the properties of the tokens bylooking up keyword table every pass during the syntax analysis, while theseproperties have been acquired during lexical analysis, using the new algorithm,therefore,we don’t need to look up the keyword table. According to the aboveanalysis, the one-pass scan method can be used as a new syntax analysis methodwhich is better than the method of traditional character matches. According thismethod, firstly a conversion from space to time is conducted to save the compiledinformation to the intermediate file for improving the speed of compilation.(3)Research on LINK and Instruction Simulation technologyFirstly, analyzed the three tasks of the linker, including Address and StorageAllocation, Symbol Resolution and Relocation, researched two-pass scan algorithmused. in the linker. Secondly, researched the component and pipeline technology usedin the simulation of instruction.(4) System ImplementationThe integrated development environment of assembly language teachingplatform, using the divide-and-conquer method, is divided into four modulesincluding editor module, compiler module, linker module and debugger module andeach module into a plurality of smaller modules and each module describes the mainfeatures. A detailed introduction of the design and implementation of each moduleprocesses is provided, including compiler module which consists of lexical analysismodule, the syntax analysis module, expression evaluation module, code generationmodule, the target file generation module, list file generation module,symbol-tablemanagement module, error detection and reporting module and instruction module,the linker module which consists of symbol resolution module, relocation module anddebugger module which consists of CPU functional analog module, registers analogmodule, memory analog modules and instruction set analog module and so on.
Keywords/Search Tags:Assembly language, Integrated compiler environment, Instructionemulation, Interpretive execution, Aided teaching
PDF Full Text Request
Related items