performance regressions, profiling _of_ gcc
Steven Bosscher
s.bosscher@student.tudelft.nl
Wed Apr 9 08:25:00 GMT 2003
Op wo 09-04-2003, om 12:55 schreef Jan Van Dijk:
> To this end I need more detailed information than -ftime-report gives me.
You can get profile information from gprof (from binutils). To create a
profiling compiler, I suggest you bootstrap and install a compiler, and
use that compiler to build (i.e. make, not make bootstrap) a compiler
with CFLAGS=-pg LDFLAGS=-pg.
gcov can give you coverage information with gcov (part of GCC). It is
documented in the GCC manual.
> and bootstrapped the compiler, but I am clueless how to proceed. I was
> assuming that running the new compiler on some test file would result in
> files suitable for analysis _of gcc_ with gcov/gprof, but nothing seems to
> appear.
Maybe you have tried to profile the compiler driver? You should profile
the compiler itself (i.e. cc1, cc1plus, etc).
Hope this helps,
Greetz
Steven
More information about the Gcc
mailing list