Date: Thu, 1 Oct 1998 21:23:23 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: "David A. Scott" cc: djgpp AT delorie DOT com Subject: Re: bad code optimizations In-Reply-To: <6us6c0$4i2$1@news.ysu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.