Font Size: a A A

Design And Implementation Of The Stack-based Virtual Machine Platform Developed To Run

Posted on:2008-12-28Degree:MasterType:Thesis
Country:ChinaCandidate:C G ZhuFull Text:PDF
GTID:2208360212479188Subject:Software engineering
Abstract/Summary:PDF Full Text Request
As Computer technology appeared so far, it has been successfully applied to all walks of life. A large number of software having various functions has been correspondingly applied in different environments. With the rapid development of computer technology in recent years, when the emergence of new hardware and new technologies, computer architecture, Instruction System and operating system may correspondingly change, this will inevitably lead that some software applications in the new environment could not run normally. Abandoning and re-developing the existing software would cost a lot of manpower and funds, and waste a lot of mature software results.A 4GL language is designed in this paper from the financial font-end of the application system development perspective. The fourth generation language (4GL) is easy to grasp and easy to use, flexible, high-level process and issue-oriented. It may become magnitude to improve software productivity. It has become the mainstream of current application development toolsVarious elements of grammar and syntax rules was described in this paper, Compiler and development environment for the realization of the program was discussed in detail. Design language, syntax analysis, semantic analysis and intermediate code generation has been discussed in depth. The implementation of the virtual machine used to explain intermediate code was thoroughly discussed and the realization of the program was given.A common framework of compiler is abstracted during the study of the general model compiler of language. After that, the implementation schemes of the front end and back end are presented because it's probability was firstly considered. As to the front end, this thesis arranges syntax analysis and semantic analysis into different stages in virtue of the equal description of source program. LEX and YACC was used to realize the virtual machine translation module effectively and reliably. As to the back end, it selects the scheme that a virtual machine executes the intermediate code through interpreting. The thought of combination of object oriented technique and complier construction technique is deeply used in the procedure of implementing.The thought of Java virtual machine has profited in the virtual machine interpreter module design, the stack style method fast the realization of the rear end of the interpreter. Moreover, this thesis also makes some exploration and research on the...
Keywords/Search Tags:interpreter, virtual machine, intermediate code, 4GL language Lex, yacc
PDF Full Text Request
Related items