Update gprof documentation

Daniel Jacobowitz drow@mvista.com
Wed Oct 29 20:52:00 GMT 2003


On Wed, Oct 29, 2003 at 12:44:11PM -0800, Zack Weinberg wrote:
> Nick Clifton <nickc@redhat.com> writes:
> 
> > ! In addition to the @samp{-pg} and @samp{-g} options, older versions of
> > ! GCC required you to specify the @samp{-a} option when compiling in
> > ! order to instrument it to perform basic-block counting.  Newer
> > ! versions do not require this option and will not accept it;
> > ! basic-block counting is always enabled when @samp{-pg} is on.
> 
> To the best of my knowledge, this is not true.  The -a option is no
> longer supported; however, -pg does not cause basic block profiling.
> You need -fprofile-arcs for that.  (And -fprofile-arcs does a very
> different sort of profiling; you don't use gprof to examine the
> results.)

I'd thought so too - but gprof --annotated-source does appear to work.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list