>I have and and I have made similar things. Example I have a
>Java Script Byte code compiler and virtual stack machine done in C++
>using ANTLR among other things.
i would be very interested on the virtual stack machine in C++. do you
have the source code. i am still looking for under-the-fly run code run
400'000 times. as the host of it is C++, i have also to do the virtual
machine in C++. for the moment, i created a stack of opcodes and a switch
statement, which was slightly faster than an array of function pointers,
which would be the most elegant.
matthias
-----------------------------------------------------
matthias buercher belle nuit montage fax 4112742114
matti at belle-nuit dot com http://www.belle-nuit.com
-----------------------------------------------------
|