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 X-Sender: broeker AT acp3bf To: DJGPP workers Subject: Re: Building a profiled version of libc In-Reply-To: <3BF80E3C.3081575F@phekda.freeserve.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.