This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Update gprof documentation


Daniel Jacobowitz <drow@mvista.com> writes:

> 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.

Huh.  Learn something new every day.

zw


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