How to build a profiled gcc?

Daniel Jacobowitz drow@mvista.com
Mon Aug 27 10:41:00 GMT 2001


On Mon, Aug 27, 2001 at 12:35:03PM -0500, Brad Lucier wrote:
> When I want to profile gcc, I configure it with '--enable-checking=no'
> and compile it with BOOT_CFLAGS='-O2 -g -pg'.
> 
> However, this missed a recent issue where a lot of time was spent in
> the system routines mapping and unmapping a hunk of memory.
> 
> So a question:  How do I build a profiled gcc so that it links with the
> profiled libc and other libraries?  If this isn't easy to do by hand,
> should this be a configure option?

On (at least) Linux targets, you probably want to add -profile to that. 
Someone should really document this option!

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gcc mailing list