Re: Questions about Bytecode
- From: Eric <englere_geo@xxxxxxxxx>
- Date: 19 Apr 2007 00:21:59 -0400
On Apr 18, 1:50 pm, "Bison" <Sean.D.Gilles...@xxxxxxxxx> 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.
http://www.EricEngler.com/NanoVM.aspx
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.
Eric
.
- Follow-Ups:
- Re: Questions about Bytecode
- From: Chris F Clark
- Re: Questions about Bytecode
- References:
- Questions about Bytecode
- From: Bison
- Questions about Bytecode
- Prev by Date: Parser generators which implemented Burke-Fisher error correction
- Next by Date: Re: Parser generators which implemented Burke-Fisher error correction
- Previous by thread: Questions about Bytecode
- Next by thread: Re: Questions about Bytecode
- Index(es):