基于棧結(jié)構(gòu)的虛擬機研究與實現(xiàn)
[Abstract]:In the development of application software, the concept of virtual machine plays an important guiding role in solving the core problems in software development, such as code maintainability and system robustness. Not only in the early computer hardware and software design, play a central role, in the actual software development, especially on the embedded system, still have important guidance. At the same time because of the complexity of the virtual machine the literature and design examples needed to analyze and implement the virtual machine system are either lack of integrity or lack of guidance in the corresponding connection. This paper focuses on resolving this contradiction. Virtual machine is an effective solution for computer software, hardware upgrading and application development and maintenance. As an engineering application paper, this paper implements a compact and complete stack virtual machine with a small kernel structure. The algorithm and structure of virtual machine design are implemented in combination with concrete examples. At the same time, a high-level language Csmart and its compiler are provided. Thus constitutes a very good reference of the complete virtual machine solution. There are two ways to implement virtual machine in architecture selection, one is based on stack structure and the other is based on register structure, and these two ways are directly related to the design of virtual instruction system, and the stack structure corresponds to the reduced instruction system. The register-based mode corresponds to the complex instruction system. Because the stack structure can easily realize the software function of the general register in CPU, the application on the virtual machine can be more portable. The virtual machine that this article will introduce is the virtual machine based on stack structure. Based on the analysis and research of these two methods, especially the implementation of java virtual machine based on stack structure, the core design of a compact but complete virtual machine (Stack-based virtual machine). SVM) based on stack structure is realized. The data structure and algorithm of the virtual runtime system and the instruction parser are simplified, illustrated and well organized, which can provide a good reference for the virtual machine designer and have a strong reference in academic and practical aspects. At the same time, the virtual machine needs a high-level language and corresponding compilation system to develop and apply effectively. The high-level language of virtual machine implemented in this paper is Csmart, which is defined by a subset of C language. It is easy to understand, simple and practical, and not only enhances the reference ability of SVM. At the same time, the compilation and code generation of high-level languages are given a concise but not complete description. Csmat compiler is implemented by recursive descent. The innovation of this approach is that scanning analysis (lexical and grammatical) and code generation of Csmart programs can be completed in a single scan, which can effectively compile Csmart with simple language structure into machine code. Moreover, the code of the compiler is little and the structure is simple. A small but complete virtual machine system is introduced in this paper, which has good reference value for the design and implementation of virtual machine and the practice and research of compiling principle.
【學位授予單位】:西南交通大學
【學位級別】:碩士
【學位授予年份】:2012
【分類號】:TP302
【相似文獻】
相關(guān)期刊論文 前10條
1 陳顯祥;;用虛擬機搭建教學實驗環(huán)境[J];貴州商業(yè)高等?茖W校學報;2007年01期
2 杜化美;張更路;吳亞峰;;虛擬機在實驗教學中的應用[J];電腦知識與技術(shù);2008年14期
3 孫昱;李小勇;管海兵;;虛擬機實時遷移技術(shù)研究[J];微型電腦應用;2008年07期
4 龍瑞;伍紅兵;俞海英;胡勇強;;虛擬機在全國計算機等級考試機試中的應用[J];電腦知識與技術(shù);2008年30期
5 孫寧;;一臺電腦變多臺 虛擬機大揭秘[J];電腦愛好者;2008年21期
6 李會聰;;虛擬機在多媒體教室管理中的應用探討[J];信息技術(shù);2009年05期
7 孫躍進;;淺談好幫手——虛擬機[J];中國科技信息;2010年12期
8 付小林;;談虛擬機在中小學信息技術(shù)教學中的應用[J];中國教育信息化;2010年08期
9 梁健菁;;虛擬機在多媒體教學中的應用[J];科技信息;2011年15期
10 王佳;;虛擬機的安全分析與管理[J];太原城市職業(yè)技術(shù)學院學報;2011年11期
相關(guān)會議論文 前5條
1 韋萬貴;;虛擬機軟件在實際工作中的應用[A];甘肅成人教育協(xié)會2008年年會論文集[C];2008年
2 李永;吳慶波;蘇航;;基于虛擬機的動態(tài)遷移技術(shù)分析和研究[A];計算機技術(shù)與應用進展·2007——全國第18屆計算機技術(shù)與應用(CACIS)學術(shù)會議論文集[C];2007年
3 王軼;陳俊輝;;使用VPC2007搭建企業(yè)應用和測試平臺[A];2007第二屆全國廣播電視技術(shù)論文集2(下)[C];2007年
4 董焱;;基于虛擬化技術(shù)的實驗教學中心環(huán)境構(gòu)建[A];北京高校實驗室工作研究會2010年年會優(yōu)秀論文[C];2011年
5 董焱;;基于虛擬化技術(shù)的實驗教學中心環(huán)境構(gòu)建[A];北京高教學會實驗室工作研究會2010年學術(shù)研討會論文集(下冊)[C];2010年
相關(guān)重要報紙文章 前10條
1 特約作者:聶陽德 鐘達文;體驗虛擬機的神奇魅力[N];電腦報;2002年
2 黃樹;實戰(zhàn)虛擬機軟件[N];中國電腦教育報;2004年
3 卿晨;虛擬機為網(wǎng)絡(luò)教學收緊成本口袋[N];中國電腦教育報;2007年
4 ;虛擬機管理工具仍有改進空間[N];網(wǎng)絡(luò)世界;2007年
5 四川工程職業(yè)技術(shù)學院 江平;虛擬機助力計算機教學[N];中國電腦教育報;2006年
6 區(qū)陽;微軟推出首款虛擬機軟件[N];中國計算機報;2003年
7 丁士明;聯(lián)想虛擬化解決方案[N];中國計算機報;2007年
8 特約作者 滔滔江水;計算機也能虛擬[N];電腦報;2002年
9 ;虛擬化市場增長近五成[N];網(wǎng)絡(luò)世界;2006年
10 本報特約撰稿 陳杰;虛擬化:制度下的安全[N];計算機世界;2009年
相關(guān)博士學位論文 前5條
1 陳微;基于動態(tài)二進制翻譯的協(xié)同設(shè)計虛擬機關(guān)鍵技術(shù)研究[D];國防科學技術(shù)大學;2010年
2 馬飛;云數(shù)據(jù)中心中虛擬機放置和實時遷移研究[D];北京交通大學;2013年
3 王曉靜;I/O虛擬化的性能隔離和優(yōu)化[D];華中科技大學;2012年
4 張逢U,
本文編號:2242375
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2242375.html