This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc instruction cost
- From: Jeff Law <law at redhat dot com>
- To: htio2 <wenbin dot leong at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Wed, 14 Oct 2015 09:15:02 -0600
- Subject: Re: gcc instruction cost
- Authentication-results: sourceware.org; auth=none
- References: <1444795882532-1194316 dot post at n5 dot nabble dot com>
On 10/13/2015 10:11 PM, htio2 wrote:
How do I dump the total cost and cost of each instruction ?
There isn't a single "cost" metric and they're not stored, they're
generated on-demand as needed.
So before pointing you at the various ways GCC computes costs it'd be
helpful to know what you're trying to do with that information.
Jeff