delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/09/19:49:08

Date: Sat, 10 Jun 2000 04:33:42 +0600 (LKT)
From: Kalum Somaratna aka Grendel <kalum AT lintux DOT cx>
X-Sender: kalum AT roadrunner DOT grendel DOT net
To: djgpp AT delorie DOT com
Subject: Re: HELP...Gprof tore something up!
In-Reply-To: <200006091910.WAA26625@alpha.netvision.net.il>
Message-ID: <Pine.LNX.4.21.0006100429560.2245-100000@roadrunner.grendel.net>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

Grendel

Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019