TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: NICK SHREDERS
from: HERMAN SCHONFELD
date: 1997-04-19 13:40:00
subject: Re: DJGPP optimizations

 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.