QEMU fails with different levels of compiler optimizati
Have you tried to optimize for size instead?
Ie -Os (and also -fomit-frame-pointer)
It sometimes creates more speed optimal code than the other optimization flags.
Tom M.
_________________________________________________________________
Don�t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
Uh... Not yet, but you have a point: it makes it more likely that the critical code will fit the cache. I did not enable -fomit-frame-pointer because it makes debugging a *pain in the rear*, and sometimes I run QEMU under GDB just to see if I can narrow the problem down to some specific part of the code. And so far it seems that the mingw runtime breaks something with the Windows timing functions if I run higher levels of optimization. I'm yet to try it under Linux.
Quoted 7 lines · Tom Musgrove
Have you tried to optimize for size instead?
Ie -Os (and also -fomit-frame-pointer)
It sometimes creates more speed optimal code than the other optimization flags.
--
"A year spent in artificial intelligence is enough to make one believe in God" Alan J. Perlis