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


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

zw


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