2001 · 32 citations · 0 references
ComputingComputer EngineeringComputer ScienceCompilersEmbedded SystemsProgramming LanguagesCode GenerationCompiler ConstructionIntermediate RepresentationJust-in-time CompilationProgramming Language ImplementationRuntime SystemsAbstract MachinesBytecode GenerationBytecode Virtual MachinesEmbedded System CompilationPortabilityRuntime Code GenerationVirtual Machine Just-in-time CompilationVirtual Machines
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 deï¬nition. \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 superï¬cially 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 signiï¬cantly 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 deï¬nitions. \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