version 1.1, 2001/05/01 13:35:41
|
version 1.3, 2002/06/02 17:02:56
|
Line 1
|
Line 1
|
Vmgen generates much of the code for efficient virtual machine (VM) |
Vmgen generates much of the code for efficient virtual machine (VM) |
interpreters from a simple descriptions of the VM instructions. It |
interpreters from simple descriptions of the VM instructions. It |
generates code for executing VM instructions (with optional tracing), |
generates code for executing VM instructions (with optional tracing), |
for generating VM code, for disassembling VM code, and for profiling |
for generating VM code, for disassembling VM code, and for profiling |
VM instruction sequences. A VM instruction description looks like |
VM instruction sequences. A VM instruction description looks like |
Line 22 used to advantage when implementing a re
|
Line 22 used to advantage when implementing a re
|
The main shortcoming in the current release is the lack of a user |
The main shortcoming in the current release is the lack of a user |
manual; however, there is a paper describing vmgen's operation (at |
manual; however, there is a paper describing vmgen's operation (at |
http://www.complang.tuwien.ac.at/anton/vmgen/), and there is a simple, |
http://www.complang.tuwien.ac.at/anton/vmgen/), and there is a simple, |
working and somewhat commented example of using vmgen (in directory |
working and somewhat commented example of using vmgen. |
vmgen-ex). |
|
|
There are two versions of the example: in directory vmgen-ex you find |
|
a version using many casts; in directory vmgen-ex2 you find a version |
|
using unions instead of casts. |
|
|
|
The current release requires GCC both for building and for compiling |
|
the resulting interpreters (threaded code cannot be implemented in |
|
ANSI C). |
|
|
If you have bugs to report, suggestions to make, questions, or any |
If you have bugs to report, suggestions to make, questions, or any |
other feedback, mail me (anton@mips.complang.tuwien.ac.at). |
other feedback, mail me (anton@mips.complang.tuwien.ac.at). |