64位虚拟机SPANVM的设计与实现
刘黎明1,王昭顺1
(1. 北京科技大学信息工程学院计算机系,北京 100083)
摘要:跨平台软件开发和多语言程序设计是当前软件开发中的两个难题,SpanVM是一个基于寄存器和堆栈混合模型的64位运行时系统,凡是符合SpanVM规范的可执行字节码文件都能在移植了该虚拟机的平台上被该虚拟机执行。介绍了如何设计一个实用的虚拟机系统,包括SpanVM的内存模型、处理器设计、I/O机制和运行时过程,并以SPANVM为基础探讨了跨平台和多语言程序设计的解决方法。
关键词:虚拟机,运行时,内存管理,处理器
中图分类号:TP311
Design and Implement of 64-bit Virtual Machine SPANVM
LIU Li-ming1,WANG Zhao-shun1
(1.School of Information Engineering , Univercity of Science & Technolegy of Bejing, City Zip Code100083, China )
Abstract:Spanvm is a 64-bit runtime system based on register and stack ,is a environment for program to execute in.It provide all things needed to run a program. It can execute all bytecode files according with spanvm specification.Introduce how to design a practical virtual machine system,include SpanVM’s memory model、processer、I/O and running course, and put forward a scheme resolving multi-OS and multi-language programing.
Key words: virtual machine,runtime invirenment,memory managing, processer
1 序言
3 SPANVM的处理器设计
绝大部分应用程序受开发工具的限制,只能在特定的操作系统平台上运行,限制了应用程序的适用范围,而开发人员要使应用程序能在不同硬件平台不同操作系统上运行,需要对程序代码做很多修改甚至重新开发。这就引起了软件移植问题。
软件开发人员在开发一个系统时,往往不同的开发人员使