NS> Did you compile without the -s ?
HS> This is what I did :-
HS> A) Compiled my program WITH -s and -pg and no -romit-blahblahblah.
NS>B)
HS> Ran my newly compiled program. C) gprof tex.exe > report.txt
NS> Well, -s strips debugging information. Im quite surprised it let you
NS>compile
NS> with -s AND -pg.
NS> This is another walkthru of how i did it:
NS> Entered a source file called a.c and saved it.
NS> gcc a.c -o a.exe -Wall -O2 -pg
NS> a.exe (then went thru whatever various path in execution)
NS> gprof.exe a.exe > a
NS> q.exe a (qedit - viewed the file `a')
I found the problem.
I was compiling with -s and -pg. (djgpp didn't warn me).
Thanks for helping
... If you can't read this, try with a modem!
--- Ezycom V1.48g0 01fd016b
---------------
* Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238)
|