delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/16/20:27:15

Message-ID: <36EF04DD.4167CF28@lycosmail.com>
Date: Tue, 16 Mar 1999 20:26:53 -0500
From: Adam Schrotenboer <ajschrotenboer AT lycosmail DOT com>
X-Mailer: Mozilla 4.51 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Help with speed optimization.
References: <36ed64ef DOT 8180569 AT nntp DOT ma DOT ultranet DOT com>
Reply-To: djgpp AT delorie DOT com

You got the name right.

Anyway, compile & link all your functions with -pg on the cmdline, or if
you use RHIDE goto the debug options menu and select the -pg option. Then
after compiling it, run it, try to make sure you run all the functions.
The nrun gprof.

All this stuff is in the DJGPP FAQ and or in the GCC Docs.

David Maranhao wrote:

> Hello,
>
>         I am currently working on a game that uses the DJGPP compiler
> and the Allegro game programming library.  I need to optimize some of
> the functions for speed.  Is there a way that I can get a report on
> how much time my program spends at each function so I know where to
> optimize?  I think this might be called profiling or something.
> Anyway, if this is possible could someone please tell me how or where
> to find out?  Also any other techniques for optimizing / measuring the
> speed of my program would be greatly appreciated.  Thanks....
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> David Maranhao (davem2 AT ultranet DOT com)
> http://www.ultranet.com/~davem2
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

- Raw text -


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