Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DN7Tx-0007ss-64 for qemu-devel@nongnu.org; Sun, 17 Apr 2005 06:58:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DN7Tt-0007rZ-CS for qemu-devel@nongnu.org; Sun, 17 Apr 2005 06:58:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DN7Ts-0007kG-Eo for qemu-devel@nongnu.org; Sun, 17 Apr 2005 06:58:24 -0400 Received: from [195.130.132.59] (helo=asia.telenet-ops.be) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DN7Jj-0001h3-Sz for qemu-devel@nongnu.org; Sun, 17 Apr 2005 06:47:56 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by asia.telenet-ops.be (Postfix) with SMTP id 574782240B9 for ; Sun, 17 Apr 2005 12:46:37 +0200 (MEST) Received: from [84.194.208.183] (d54C2D0B7.access.telenet.be [84.194.208.183]) by asia.telenet-ops.be (Postfix) with ESMTP id 45BD42240F9 for ; Sun, 17 Apr 2005 12:46:37 +0200 (MEST) Mime-Version: 1.0 (Apple Message framework v622) In-Reply-To: <200504171127.36489.paul@codesourcery.com> References: <20050417055844.48210.qmail@web51601.mail.yahoo.com> <1113726074.25892.526.camel@aragorn> <70867645caaf37338ce6a98cdfb0bdc2@elis.ugent.be> <200504171127.36489.paul@codesourcery.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Jonas Maebe Subject: Re: [Qemu-devel] Profiling Qemu for speed? Date: Sun, 17 Apr 2005 12:46:37 +0200 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 17 Apr 2005, at 12:27, Paul Brook wrote: > Unfortunately it's not that simple. The push instruction may cause an > exception. Whatever optimizations you apply you've got to make sure > that the > guest state is still consistent when the exception occurs. If we just concatenate the C code of the two procedures, won't gcc take care of that for us? Or could scheduling mess this up? Maybe there's a switch to avoid having it reschedule instructions in a way that side effects happen in a different order? (that would still give us the advantage of CSE and peephole optimizations) Jonas