|Wanted: Simple virtual machine or interpreter email@example.com (Norman) (1998-02-14)|
|Re: Wanted: Simple virtual machine or interpreter firstname.lastname@example.org (brian mcsweeney) (1998-02-18)|
|Re: Wanted: Simple virtual machine or interpreter email@example.com (Lennart Augustsson) (1998-02-18)|
|From:||Lennart Augustsson <firstname.lastname@example.org>|
|Date:||18 Feb 1998 23:13:41 -0500|
|Organization:||Dept. of CS, Chalmers, Sweden|
Norman <email@example.com> writes:
> I'm searching for a simple low-level, yet efficient virtual machine
> and a compiler for it.
> * Size of binary that emulates the virtual machine: 16 Kbyte, or less.
> (If it needs more, it's not a _simple_ virtual machine!)
You could have a look at ftp://ftp.cs.chalmers.se/~augustss/oc.tar.gz.
This is the unobfuscated version of my winning entry in the Obfuscated
C Code Contest. It is an interpreter for a simple byte code together
with a compiler. The language the compiler accepts is a subset of C.
The source code for the interpreter is 140 lines and on a SPARC the
binary is about 16K.
The compiler can compile itself as well as the interpreter, but
is probably of no interest to you.
As you can see the code is totally void of any copyrights whatsoever,
but if you feel like it you could add my name to it.
-- Lennart Augustsson
Return to the
Search the comp.compilers archives again.