Re: Questions about Bytecode

Eric <>
19 Apr 2007 00:21:59 -0400

          From comp.compilers

Related articles
Questions about Bytecode (Bison) (2007-04-18)
Re: Questions about Bytecode (Eric) (2007-04-19)
Re: Questions about Bytecode (Hans-Peter Diettrich) (2007-04-19)
Re: Questions about Bytecode (Chris F Clark) (2007-04-19)
Re: Questions about Bytecode (Bison) (2007-04-20)
Re: Questions about Bytecode (2007-04-23)
Re: Questions about Bytecode (Andy Johnson) (2007-04-23)
Re: Questions about Bytecode (Hans-Peter Diettrich) (2007-04-23)
[6 later articles]
| List of all articles for this month |

From: Eric <>
Newsgroups: comp.compilers
Date: 19 Apr 2007 00:21:59 -0400
Organization: Compilers Central
References: 07-04-061
Keywords: interpreter, VM
Posted-Date: 19 Apr 2007 00:21:59 EDT

On Apr 18, 1:50 pm, "Bison" <> wrote:

> Are there any VMs that would be good examples
> (and that is open source)?

There are many open source VMs, such as Jikes, but most of them are
quite complex. I think most VMs use a literal pool just to conserve
resources. But that is becoming less important on modern computers.

The NanoVM microcontroller virtual machine is pretty easy to
understand and is written in C. NanoVM runs NVM coded programs. These
are created by a translator program called NanoVMTool that runs on a
PC. NanoVMTool takes a Java byte code compiled program and down-sizes
it to meet the needs of the tiny NanoVM. NanoVM itself can run a
program on a PC, or on an AVR micrcontroller.

The UCSD p-machine is also somewhat easy to understand, and sources
have recently surfaced for that, along with detailed documentation.
This is a non-OOP model and it extrememly efficient with a memory
constrained environment. It could run programs coded in many
languages, not just Pascal. I remember seeing COBOL and Fortran
support for it. But it pre-dated the popularity of C, so I don't think
C was a supported language.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.