Mail Archives: djgpp/1999/02/23/11:58:38
On Tue, 23 Feb 1999, Olivier Sohier wrote:
> I am trying to get profile information with gcc.
> On SunOS, I'm using gcc version 2.7.2.1 with '-a' and '-g' options. The
> file 'bb.out' generated after execution contains the number of times
> each basic block is executed, and the C line number of the start of the
> basic block.
You are mixing two different things here. If you need the run-time
profile of a program, compile and link it with the -pg switch, run it,
and then type "gprof program" to generate the profile. The profile shows
how much time, absolute and in percents, did every function take. See
chapter 13 of the DJGPP FAQ list for more details.
If you need a coverage info (i.e., how many times each block was
executed), then currently you can't: `gcov', the GNU version of the
coverage tool, is not ported to DJGPP.
> Why can't I get a 'bb.out' with gcc 2.6.3 ?
If I recall correctly, there was a bug in early versions of GCC ports to
DJGPP which prevented bb.out from being created.
- Raw text -