qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu vs gcc4


From: Laurent Desnogues
Subject: Re: [Qemu-devel] qemu vs gcc4
Date: Mon, 23 Oct 2006 20:20:47 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

K. Richard Pixley a écrit :
Well, perhaps. Except that with gcc, we get to leverage the ongoing gcc optimizations, bug fixes, new cpu support, debugger support, etc. Granted, not all of these are going to be relevant to the qemu environment, but in a contest between gcc generated code and qemu generated code, I'll bet on gcc most days.

No doubt there are times when a gcc optimization takes so long that it costs more time to optimize than would be won back by the running code. Presumably, qemu generated code would be able to make better decisions here. Except that we're not talking about using gcc in real time, are we? So essentially we have near infinite time for optimizations.

One emulated instruction is a small C function with very little
opportunity for optimization.

On top of that, for instance, calculating flags can be done much
more efficiently at assembly level by using host flags.

All what gcc brings here is portability.


                        Laurent




reply via email to

[Prev in Thread] Current Thread [Next in Thread]