TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: WIM VELDHUIS
from: HERMAN SCHONFELD
date: 1997-04-16 15:23:00
subject: DJGPP optimizations

WV>Do not use the exe, but the file GENERATED by the exe (See below)
 HS> I have compiled correctly with -pg and no
 HS> -fomit-frame-pointer. (they're incompatible).
WV>It is a year ago, so this is becoming a bit vague to me already. I used
WV>gprof on a RS/6000 AIX machine for profiling. I remember having problems
WV>similar to you. The way I got it to work is to provide the -pg option
WV>when compiling AND when linking (I used a makefile since it was a multi
WV>module project). Then, after you have runned the program as usual and
WV>ended it NORMALLY a new file has been created in the directory where you
WV>run the program. This file should be given as input to the gprof
WV>utility. I used I/O redirection to write the results to a new file
WV>(gprof generated_prof_file_name >results.txt). This works, but I noticed
WV>later that under SCO unix the report was in a different format. The way
WV>to get to the results was however the same.
I tried running
"gprof gmon.out >file.txt" and it reported
"c:/gcc/bin: gprof: Bad format".
GMON.OUT is the generated file. There doesn't appear to be any documentation 
on gprof for some strange reason. I've looked everywhere in the "info" 
program and i can't find a gprof node.
Any suggestions?
Bye for now..
... Error 87 - Tagline out of caracters...
--- 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™.