Message-ID: <3941996B.2EFBB2FB@gtcom.net> From: Krogg X-Mailer: Mozilla 4.61 [en] (Win95; U) X-Accept-Language: en,en-US,en-GB,ja,af MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: HELP...Gprof tore something up! References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 35 Date: Fri, 09 Jun 2000 21:27:07 -0400 NNTP-Posting-Host: 12.16.179.144 X-Trace: eagle.america.net 960600494 12.16.179.144 (Fri, 09 Jun 2000 21:28:14 EDT) NNTP-Posting-Date: Fri, 09 Jun 2000 21:28:14 EDT Organization: 24hoursupport.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 > > > > > > 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