Stack -based virtual machine based development platform for the design and implementation of operational
- Author
- ZhuChengGuang
- Advisor
- XiaQingGuo
- School
- Northwestern Polytechnical University
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 110
- Citations
- 4
Abstract
The rapid development of computer technology, when the new hardware, new technology appears, computer architecture, instruction and operating systems are likely to change accordingly, which will inevitably lead to some application software in the new environment under normal operation. Using a virtual machine to a certain extent, to avoid similar things happen, when faced with a new hardware platform or a new operating system, the only thing you need is a portable virtual machine itself. Paper from the financial front system application development point of view, the use of a 4GL language. Fourth-generation language (4GL) with easy to grasp, easy to use, flexible and a high degree of non-procedural issue-oriented, and can be orders of magnitude improve software productivity and other characteristics, has become the mainstream of the current application development tools. In the right language interpreter that language research, the paper summarizes the general model of the compiler, giving priority to the platform portability, the language interpretation system is divided into two separate compilation and interpretation module to design and implement . And against its front and rear ends, respectively, selected the appropriate implementation scenarios: front-end tools LEX and YACC, syntax and semantic analysis will be arranged into different stages, efficiently and reliably achieve virtual machine translation module backend selected with a virtual machine running on the intermediate code interpreter implementation. In the virtual machine interpreter module design draws on the idea of ??the Java virtual machine, use the stack-based design method is simple and quick to implement backend interpreter. This paper designs and implements a stack-based virtual machine, the virtual machine and the key technologies are discussed and studied. In the back-end virtual machine implementation aspects of the system, with the virtual machine maintenance code area, the frame stack, the function run-time stack, instruction counter together constitute the run-time environment, control program execution. Through a special design, parameters and local variables access, improve the efficiency of the virtual machine. Practical application shows that the compiler can generate compact intermediate code, its virtual machines running on the intermediate code interpreter, high efficiency, stable, reliable, safe, shielding the different platforms disparities, good to meet the financial front system application development needs.
Table of contents
Abstract 3-4
ABSTRACT 4-8
first chapter 8-13
1.1 Background and Significance 8 - 11
1.1.1 Background 8-9
1.1.2 Development Status 9-10
1.1.2 significance of the topic 10-11
1.2 topics sources 11
1.3 main contents 11-12
1.4 Thesis Organization 12-13
chapter related technology and background 13-19
2.1 virtual machine system 13-15
2.1.1 virtual machine history and concepts 13-14
2.1.2 virtual machine application 14-15
2.2 compiled and interpreted systems knowledge 15-18
2.2.1 compilation process and compile the program structure 15
2.2.2 compilation process outlined 15-17
2.2.3 compiler general framework 17-18
2.3 Chapter Summary 18-19
The third chapter explains the system's overall design 19-28
3.1 Language Choice 19-22
3.1.1 Resource File Description 20 < br /> 3.1.2 Process File Description 20-21
3.1.3 The basic syntax of the program structure 21-22
3.2 system backend implementation choices 22-26
3.2.1 backend interpreter program 22-24
3.2.2 stack structure choice 24-26
3.3 overall system structure 26-27
3.4 Summary 27-28
Chapter IV compiler front-end implementation 28-37
4.1 lexical analysis 28-30
4.1.1 lexical analysis and parsing interface mode 28-29
4.1.2 kind words 29
4.1.3 lexical analytical process 29-30
4.1.4 design process some processing 30
4.2 parser 30-31
4.3 intermediate code format 31-33
4.4 intermediate code generation 33-36
4.5 Chapter Summary 36-37
Chapter backend virtual machine implementation 37-53
5.1 virtual machine composed 37-38
5.2 runtime system and virtual machine 38-39
5.3 virtual machine system structural design 39-41
5.4 loader process works 41-42
5.5 kernel stack virtual machine operating mechanism and the realization 42-48 < br /> 5.5.1 virtual machine data stack operation mechanism 42-44
5.5.2 Implementation Mechanism of local variables 44-45
5.5.3 process parameter passing mechanism 45-47
5.5.4 virtual machine computing stack and reference stack operation mechanism 47-48
5.6 virtual machine running 48-51
5.6.1 virtual machine lifecycle 48
5.6.2 virtual machine steps 48-51
5.7 Chapter Summary 51-53
Chapter simulation examples and performance testing 53-62
6.1 simulation example 53-55
6.2 performance test methods and use cases 55-56
6.2.1 Test Method 55-56
6.2.2 test 56
6.3 Performance Test Results 56-60
6.3.1 transaction response time and throughput 56-59
6.3.2 User Login Test 59
6.3.3 Stability and reliability testing 59-60
6.4 Performance test results 60
6.5 Chapter Summary 60-62
Chapter VII Conclusion 62-63
References 63-66
papers 66-67
Thanks 67-68
Appendix 68-76
Related dissertations
- Study and Implementation of Interpreter of Data Base Procedure Language
- Research on SQL Complier of Database Engine
- Implementation of the Parser of TTCN-3 by Parser Generator Based on the Windows System
- Research of Serial Program Parallelization Technology and a New Design Idea
- The Analysis and Realization of Database Language SQL
- Linux-based PL/SQL Compiler
- Design and Develop of Instrument Virtual Computer Assembly Language Based on DSP
- Research on Performance Monitoring Technique of Cluster Management of the Virtual System
- The Design and Implementation of Industrial Robot Programming Language
- Research on Attacks and Prevention Technology Based on ARP and PPPoE
- Based on I/O Performance of Virtual Machine Resource Scheduling Algorithm Research
- The virtual system self-healing analysis model research and Application
- A Data Persistence System for Virtual Ma-chines in Cloud Environment
- A Comprehensive Checkpoint Mechanism for Virtual Disk Image
- Overcommitting Memory by Initiative Share from KVM Guests
- Research on Techniques of Bandwidth Controlling of Virtual Machine in Data Center
- Research of Optimizing Virtual Machine Checkpoint
- Research on the Optimization Mechanisms for Hot Standby Based on Remus
- Research on Live Migration of Virtual Machine across the Datacenter
- The Research of Dynamic Double-Level Layers VM Scheduler Strategies