基于棧結(jié)構(gòu)的虛擬機(jī)研究與實(shí)現(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.
【學(xué)位授予單位】:西南交通大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2012
【分類號】:TP302
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 陳顯祥;;用虛擬機(jī)搭建教學(xué)實(shí)驗(yàn)環(huán)境[J];貴州商業(yè)高等專科學(xué)校學(xué)報(bào);2007年01期
2 杜化美;張更路;吳亞峰;;虛擬機(jī)在實(shí)驗(yàn)教學(xué)中的應(yīng)用[J];電腦知識與技術(shù);2008年14期
3 孫昱;李小勇;管海兵;;虛擬機(jī)實(shí)時(shí)遷移技術(shù)研究[J];微型電腦應(yīng)用;2008年07期
4 龍瑞;伍紅兵;俞海英;胡勇強(qiáng);;虛擬機(jī)在全國計(jì)算機(jī)等級考試機(jī)試中的應(yīng)用[J];電腦知識與技術(shù);2008年30期
5 孫寧;;一臺電腦變多臺 虛擬機(jī)大揭秘[J];電腦愛好者;2008年21期
6 李會聰;;虛擬機(jī)在多媒體教室管理中的應(yīng)用探討[J];信息技術(shù);2009年05期
7 孫躍進(jìn);;淺談好幫手——虛擬機(jī)[J];中國科技信息;2010年12期
8 付小林;;談虛擬機(jī)在中小學(xué)信息技術(shù)教學(xué)中的應(yīng)用[J];中國教育信息化;2010年08期
9 梁健菁;;虛擬機(jī)在多媒體教學(xué)中的應(yīng)用[J];科技信息;2011年15期
10 王佳;;虛擬機(jī)的安全分析與管理[J];太原城市職業(yè)技術(shù)學(xué)院學(xué)報(bào);2011年11期
相關(guān)會議論文 前5條
1 韋萬貴;;虛擬機(jī)軟件在實(shí)際工作中的應(yīng)用[A];甘肅成人教育協(xié)會2008年年會論文集[C];2008年
2 李永;吳慶波;蘇航;;基于虛擬機(jī)的動(dòng)態(tài)遷移技術(shù)分析和研究[A];計(jì)算機(jī)技術(shù)與應(yīng)用進(jìn)展·2007——全國第18屆計(jì)算機(jī)技術(shù)與應(yīng)用(CACIS)學(xué)術(shù)會議論文集[C];2007年
3 王軼;陳俊輝;;使用VPC2007搭建企業(yè)應(yīng)用和測試平臺[A];2007第二屆全國廣播電視技術(shù)論文集2(下)[C];2007年
4 董焱;;基于虛擬化技術(shù)的實(shí)驗(yàn)教學(xué)中心環(huán)境構(gòu)建[A];北京高校實(shí)驗(yàn)室工作研究會2010年年會優(yōu)秀論文[C];2011年
5 董焱;;基于虛擬化技術(shù)的實(shí)驗(yàn)教學(xué)中心環(huán)境構(gòu)建[A];北京高教學(xué)會實(shí)驗(yàn)室工作研究會2010年學(xué)術(shù)研討會論文集(下冊)[C];2010年
相關(guān)重要報(bào)紙文章 前10條
1 特約作者:聶陽德 鐘達(dá)文;體驗(yàn)虛擬機(jī)的神奇魅力[N];電腦報(bào);2002年
2 黃樹;實(shí)戰(zhàn)虛擬機(jī)軟件[N];中國電腦教育報(bào);2004年
3 卿晨;虛擬機(jī)為網(wǎng)絡(luò)教學(xué)收緊成本口袋[N];中國電腦教育報(bào);2007年
4 ;虛擬機(jī)管理工具仍有改進(jìn)空間[N];網(wǎng)絡(luò)世界;2007年
5 四川工程職業(yè)技術(shù)學(xué)院 江平;虛擬機(jī)助力計(jì)算機(jī)教學(xué)[N];中國電腦教育報(bào);2006年
6 區(qū)陽;微軟推出首款虛擬機(jī)軟件[N];中國計(jì)算機(jī)報(bào);2003年
7 丁士明;聯(lián)想虛擬化解決方案[N];中國計(jì)算機(jī)報(bào);2007年
8 特約作者 滔滔江水;計(jì)算機(jī)也能虛擬[N];電腦報(bào);2002年
9 ;虛擬化市場增長近五成[N];網(wǎng)絡(luò)世界;2006年
10 本報(bào)特約撰稿 陳杰;虛擬化:制度下的安全[N];計(jì)算機(jī)世界;2009年
相關(guān)博士學(xué)位論文 前5條
1 陳微;基于動(dòng)態(tài)二進(jìn)制翻譯的協(xié)同設(shè)計(jì)虛擬機(jī)關(guān)鍵技術(shù)研究[D];國防科學(xué)技術(shù)大學(xué);2010年
2 馬飛;云數(shù)據(jù)中心中虛擬機(jī)放置和實(shí)時(shí)遷移研究[D];北京交通大學(xué);2013年
3 王曉靜;I/O虛擬化的性能隔離和優(yōu)化[D];華中科技大學(xué);2012年
4 張逢U,
本文編號:2242375
本文鏈接:http://www.sikaile.net/kejilunwen/jisuanjikexuelunwen/2242375.html