This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Update gprof documentation
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 29 Oct 2003 12:44:11 -0800
- Subject: Re: Update gprof documentation
- References: <m3ad7jq5fw.fsf@redhat.com>
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