Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DNWnc-0003Tn-2x for qemu-devel@nongnu.org; Mon, 18 Apr 2005 10:00:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DNWnM-0003RZ-O9 for qemu-devel@nongnu.org; Mon, 18 Apr 2005 10:00:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNWnK-0003Ck-L0 for qemu-devel@nongnu.org; Mon, 18 Apr 2005 10:00:10 -0400 Received: from [213.239.212.8] (helo=live1.axiros.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DNWaJ-0000CO-FU for qemu-devel@nongnu.org; Mon, 18 Apr 2005 09:46:43 -0400 Mime-Version: 1.0 (Apple Message framework v622) In-Reply-To: <42638306.4050200@cs.man.ac.uk> References: <20050418083542.45378.qmail@web54110.mail.yahoo.com> <42638306.4050200@cs.man.ac.uk> Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-19-233219613" Message-Id: <95a144a538f61473783743fa426580a0@axiros.com> Content-Transfer-Encoding: 7bit From: Daniel Egger Subject: Re: [Qemu-devel] Profiling Qemu for speed? Date: Mon, 18 Apr 2005 15:44:49 +0200 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ian.rogers@manchester.ac.uk, qemu-devel@nongnu.org --Apple-Mail-19-233219613 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 18.04.2005, at 11:51, Ian Rogers wrote: > I'm not sure if you can get GCC to generate code sequences like this, > but you probably at least need to use the -fprofile-generate and > -fprofile-use options > http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html Feedback optimisation (FDO) will not work for two reasons: a) qemu itself is something like a realtime compiler so FDO will only speed up the compiler but not the generated code b) FDO will only provide speed boosts if the feedback phase has a chance to analyse a representative work pattern that is hopefully also repetitive After all FDO is mostly about making a tradeoff size/speed and rearranging code (mostly branches) to avoid branch mispredictions of the CPU. Servus, Daniel --Apple-Mail-19-233219613 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Darwin) iD8DBQFCY7nRchlzsq9KoIYRAixyAJ4kT33OnJaWjGz9hWq2y8Hdx3gWwACfQKzt MIR1kttKWX/cKfXYJwVJoos= =haUO -----END PGP SIGNATURE----- --Apple-Mail-19-233219613--