|Interpreters & Intermediate languages email@example.com (1994-04-13)|
|Re: Interpreters & Intermediate languages firstname.lastname@example.org (1994-04-13)|
|Re: Interpreters & Intermediate languages email@example.com (1994-04-19)|
|Re: Interpreters & Intermediate languages firstname.lastname@example.org (1994-04-21)|
|Re: Interpreters & Intermediate languages email@example.com (Bryan O'Sullivan) (1994-04-22)|
|From:||firstname.lastname@example.org (Kym Horsell)|
|Organization:||Department of Electronic Engineering, La Trobe University|
|Date:||Thu, 21 Apr 1994 05:35:58 GMT|
email@example.com (Elan Feingold) writes:
>I'm looking to write a fast emulator for the Z80. I want to use dynamic
Partial evaluation technology is probably what you need.
There are research-oriented books (the area is till quite new) but Pagan
has a nice little book illustrating how to turn interpreters written is
Pascal into straight code. His methods are manual, but despite their
simplicity are reasonably good. I can get an exact ref if your library
computer is lacking an index. ;-)
I think (from memory) he cites a stack-language interpreter + stack code
for X ==> Pascal program for X running about an order of mag faster than
the original interpreter + X (as one would usually expect).
Hence to emulate your Z80 first write an interpreter for the Z80 and then
follow Pagan's methods to turn it into a program generator. Thence feed
the prog-gen your Z80 code and get Pascal code for same task; thence
compile into your favourite machine lang via Pascal comp.
Return to the
Search the comp.compilers archives again.