AN>ΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ
AN>Hi Herman,
AN> [...]
HS>> If you ask me, djgpp is good at optimizing.
NS>> Pretty good is right! Its also great for profiling. Sometime omit
NS>> the -s and -fomit-frame-pointer switched, add in -pg (Assuming you
NS>> have gprof which comes with DJGPP) and execute your program. This
NS>> will kick out a dump to a file, then run gprof |
NS>> more or redirect output to a file, and you can see all kinds of
NS>> stuff, how many times a function is executed, how long it took,
NS>> etc, alot better then the big beastly confusing Turbo Profiler if
NS>> you ask me.
HS> It doesn't seem to work. When i try running "gprof tex.exe | more"
AN>it
HS> returns with an error message "unrecognized file format".
AN>Have you run the Program once before (!!!) you tried the gprof ???
HS> I tried running "gprof tex.o |more" and it dumped a whole lot of
HS> directives on the screen (as if i were to type gprof /? etc).
AN>No !! The o(bjekt)-file is the wrong parameter !!!
HS> How do i get this to work?
AN>add "-pg" when compiling ... run the program ... start gprof !!!
I have, it just doesn't work.
I tried with the .o file and it dumps a file with crap results.
... Fh|$ fagL|ne made fGfm GScYcLed ac|| chaGacfSG$
--- Ezycom V1.48g0 01fd016b
---------------
* Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238)
|