From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc4A9-0006Nd-Gh for qemu-devel@nongnu.org; Mon, 23 Oct 2006 14:04:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc4A7-0006JW-Iw for qemu-devel@nongnu.org; Mon, 23 Oct 2006 14:04:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc4A6-0006JE-Q5 for qemu-devel@nongnu.org; Mon, 23 Oct 2006 14:04:34 -0400 Received: from [12.7.175.14] (helo=mx2.palmsource.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gc4A6-0003Ai-Cj for qemu-devel@nongnu.org; Mon, 23 Oct 2006 14:04:34 -0400 Message-ID: <453D0428.9090809@palmsource.com> Date: Mon, 23 Oct 2006 11:04:24 -0700 From: "K. Richard Pixley" MIME-Version: 1.0 Subject: Re: [Qemu-devel] qemu vs gcc4 References: <45391B22.1050608@palmsource.com> <56d259a00610230116p33e13e32i9b82f1e8f0871f27@mail.gmail.com> <453CFED8.2020402@palmsource.com> <200610231858.32157.paul@codesourcery.com> In-Reply-To: <200610231858.32157.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org Paul Brook wrote: > Better to just teach qemu how to generate code. > In fact I've already done most of the infrastructure (and a fair amount of the > legwork) for this. The only major missing function is code to do softmmu > load/store ops. > https://nowt.dyndns.org/ 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. --rich