delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/11/19/07:10:06

X-Authentication-Warning: acp3bf.physik.rwth-aachen.de: broeker owned process doing -bs
Date: Mon, 19 Nov 2001 13:08:40 +0100 (MET)
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
X-Sender: broeker AT acp3bf
To: DJGPP workers <djgpp-workers AT delorie DOT com>
Subject: Re: Building a profiled version of libc
In-Reply-To: <3BF80E3C.3081575F@phekda.freeserve.co.uk>
Message-ID: <Pine.LNX.4.10.10111191304260.28471-100000@acp3bf>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019