This is the mail archive of the
mailing list for the GCC project.
Re: program executin times differ between gcc versions
- From: Joel Dice <dicej at mailsnare dot net>
- To: Paul Moore <slesuser at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 1 Nov 2007 08:31:43 -0600 (MDT)
- Subject: Re: program executin times differ between gcc versions
- References: <email@example.com>
On Thu, 1 Nov 2007, Paul Moore wrote:
Using optimization flags is not possible due to the fact that large
parts of the application failed in -O test runs and would need to be
fixed/tested extensively first. Profiling with -pg/gprof has not been
produced usable results as shared libraries are not being tracked.
In my experience, OProfile (oprofile.sourceforge.net) is much better than
gprof at revealing the hotspots in my programs, including time spent in
shared libraries. I strongly recommend it.
OTOH, I would worry more about correctness than performance at this point
if the code breaks with optimization turned on.