Gprof does not generate a gmon.out-file at all :-(

Clemens Eisserer linuxhippy@gmail.com
Thu Sep 15 09:10:00 GMT 2005


Hello,

I just started to play a bit with gprof since I want to tune a library
a bit, and this works great for a small hello-world testsample I
created.

However with the library I want to profile  it does not work, the
library uses the following structure:
Test-Program (compiled with -pg) <-----> Library (-pg) <-----> System libraries

I rund withought problems but simply does not generate any
gmon.out-files. I am using an out-of-the-box FC4 with GCC-4.0.0.

The library was compiled with the following switches:

gcc -c -I/home/ce/netpbm-10.29/converter/other/../../converter/other
-I. -I/home/ce/netpbm-10.29/converter/other/../../util 
-I/home/ce/netpbm-10.29/converter/other/../../urt -DNDEBUG \
     -pg -ffast-math  -pedantic -fno-common -Wall -Wno-uninitialized
-Wmissing-declarations -Wimplicit -Wwrite-strings -Wmissing-prototypes
  -o xwdtopnm.o xwdtopnm.c

It would be great if anybody could give me a tip where to start to 
search or maybe its just my fault, who knows :-(

Thank you in advance, lg Clemens



More information about the Binutils mailing list