HS> If you ask me, djgpp is good at optimizing.
NS> Pretty good is right! Its also great for profiling. Sometime omit the
NS> -s and -fomit-frame-pointer switched, add in -pg (Assuming you have
NS>gprof
NS>which comes with DJGPP) and execute your program. This will kick out a
NS>dump
NS>to a file, then run gprof | more or redirect output to
NS>a
NS>file, and you can see all kinds of stuff, how many times a function is
NS>executed, how long it took, etc, alot better then the big beastly
NS>confusing
NS>Turbo Profiler if you ask me.
It doesn't seem to work. When i try running "gprof tex.exe | more" it returns
with an error message "unrecognized file format".
I have compiled correctly with -pg and no -fomit-frame-pointer. (they're
incompatible).
I tried running "gprof tex.o |more" and it dumped a whole lot of directives
on the screen (as if i were to type gprof /? etc).
How do i get this to work?
... BREAKFAST.COM Halted... Cereal port not responding.
--- Ezycom V1.48g0 01fd016b
---------------
* Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238)
|