> As far as I can gather it has a code emitter similar to the other 68000
> emulators except it produces C code fragments for each opcode.
> These code fragments are then executed based on opcodes with run-time compiled
> IL structures (I think...).
> Yet the PDF talks about flag optimisation, and an ARM backend!
> How can you have an x86 or ARM backend if it is producing C code fragments on an
> opcode basis and then executing them one at a time based on a run-time
> intemediate language?
I thought the way Generator worked was that it emulated instructions with C functions (generated at compile time) invoked by a sequence of CALL instructions (in the native processor language.)
It could probably do flag optimization by having different functions for each instruction which calculate different combinations of flags (or none at all.)
I'm not really sure, though. Email James and see what he says :) And then post the answer here ;)