"just in time" compiler/translator for the simulators.

Frank Ch. Eigler fche@redhat.com
Sat Sep 15 11:44:00 GMT 2001


graydon wrote:

: [...]  another, slightly weirder approach is to scan your target
: programs insns and emit fully-specialized semantic C for those insns
: alone, and feed them into gcc, essentially pre-decoding and
: pre-extracting the entire set of functions used by your program
: alone. [...]

I actually built a working toy implementation of this sort of thing a
few years ago.  It worked fairly well, demonstrating a number of
predictable down-sides, and a number of exciting possibilities.

I never completed the paper on it, but its last draft may be of
interest to you.  If nothing else, it discusses various simulation
techniques, and it's fairly readable.

        http://web.elastic.org/~fche/gxsim.ps

Get it while it's hot .. uhh ... stone cold.  Limited time offer.

- FChE



More information about the Cgen mailing list