This conversation, below, is very interesting. It is precisely this
part of QEMU that fascinates me and potentially holds the most promise
for performance gains. I have even imagined using a genetic algorithm
to discover optimal block-sizes and instruction re-ordering and
whatnot. This could be
I was up until 3:00am studying Qemu, and I came to the conclusion
that
it doesn't make sense to try speeding up the output code, at least
not
yet. A peephole optimizer or hand-coded sequences made to handle
common
combinations of instructions would lead to the problems discussed
here: