Mail Archives: djgpp/2000/06/09/22:41:24
Kalum Somaratna aka Grendel wrote:
>
> On Fri, 9 Jun 2000, Eli Zaretskii wrote:
>
> > > Date: Fri, 9 Jun 2000 08:05:01 +0600 (LKT)
> > > From: Kalum Somaratna aka Grendel <kalum AT lintux DOT cx>
> > >
> > > The -pg causes profiling code to be included in the executable which
> > > results in a noticible performance hit..so please remove it...
> >
> > That's not really true: all the profiling code does is to hook the
> > timer tick interrupt and run a 5-line C function when the timer
> > ticks. For 18 times a second, this is nowhere near a performance
> > hit.
>
> Actually what made me make this comment is that from experience I find
> that a program compiled with the -pg option seems to run way slower than
> the same program without any optimisations ie just the -g switch.
>
My program rand just fine with the -pg switch,its when i
REMOVED it when i was done and recompiled it that i saw
the problem....and it affected other djgpp programs that
WERE NOT recompiled,just ran,which really confused me.
It wasnt till i removed power from my boxand _then_
rebooted that everything returned to normal...
I will update my files if i can,and maybe later try
profiling again....Let you all know what happens.
BE cool,
Krogg
--
.sig
- Raw text -