Mail Archives: djgpp-workers/2001/11/19/07:10:06
On Sun, 18 Nov 2001, Richard Dawe wrote:
> Hello.
>
> How do you build a profiled verison of libc?
>
> Using a copy of CVS sources I added '-a'
Don't. '-a' mode can be useful, but it has lots of limitations, not the
smallest of which is that the output file is terribly large, to the point
of being unreadable. "-fprofile-arcs -ftest-coverage", to be combined
with gcov, is more accurate, and it only writes huge ASCII output if you
ask for it (by running gcov).
And be careful not to compile mcount.c with profiling enabled --- you'ld
get a chicken-and-egg problem.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -