delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/07/05:30:59

Message-Id: <3.0.16.19971107101636.357fbc84@hem1.passagen.se>
Date: Fri, 07 Nov 1997 10:16:45 -0500
To: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
From: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
Subject: Re: Code optimisations
Cc: djgpp AT delorie DOT com
Mime-Version: 1.0

>> Here are some tips on code optimizing that I saw somewhere:
>> * First, profile your code and find what needs improving; it's often not
>> what you think.
>> * A good algorithm is likely to make the most difference in speed.
>> * Tricks in rearranging syntax to get the compiler to make better code
>> rarely help.
>
>I agree with Nate for 1 and 2. Not for 3 if you'll use GCC because for 
>somethings is really stupid and needs some help (I don't know about a better 
>compiler).

Could you give some examples of situations when GCC really needs help to
provide optimized code!


-- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se --

*****************************************************
* A brief description of DJGPP:                     *
* NEVER BEFORE HAS SO FEW DONE SO MUCH FOR SO MANY! *
*****************************************************

- Raw text -


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