delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/08/19:21:36

Date: Thu, 1 Oct 1998 21:23:23 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "David A. Scott" <an096 AT yfn DOT ysu DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: bad code optimizations
In-Reply-To: <6us6c0$4i2$1@news.ysu.edu>
Message-ID: <Pine.SUN.3.91.981001212142.18395V-100000@is>
MIME-Version: 1.0

On 30 Sep 1998, David A. Scott wrote:

>   This might be done to set flags. Also no
> C compiler can come close to what any average program
> can do if he takes his time. Since the programer is really
> using addtional information that the complier can never
> really know. And that is true of any high level language.

A rule of thumb is that rewriting in assembly will never yield more than 
about twofold speedup, many times even less than that.  So if you need to 
seed up the program more than that, don't try assembly; change the 
algorithms.

- Raw text -


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