Stacking them up: a comparison of virtual machines

K. John Gough

2001 · 32 citations · 0 references

Concepts

Abstract

A popular trend in current software technology is to 
\ngain program portability by compiling programs to an in- 
\ntermediate form based on an abstract machine definition. 
\nSuch approaches date back at least to the 1970s, but have 
\nachieved new impetus based on the current popularity of 
\nthe programming language Java. Implementations of lan- 
\nguage Java compile programs to bytecodes understood by 
\nthe Java Virtual Machine (JVM). More recently Microsoft 
\nhave released preliminary details of their “.NET” platform, 
\nwhich is based on an abstract machine superficially similar 
\nto the JVM. In each case program execution is normally me- 
\ndiated by a just in time compiler (JIT), although in principle interpretative execution is also possible. 
\n
\nAlthough these two competing technologies share some 
\ncommon aims the objectives of the virtual machine designs 
\nare significantly different. In particular, the ease with which embedded systems might use small-footprint versions of these virtual machines depends on detailed properties of the machine definitions. 
\n
\nIn this study, a compiler was implemented which can 
\nproduce output code that may be run on either the JVM 
\nor .NET platforms. The compiler is available in the pub- 
\nlic domain, and facilitates comparisons to be made both at 
\ncompile time and at runtime. 
\n