This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to build a profiled gcc?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]