Date: Tue, 18 Apr 2000 06:18:06 +0600 (LKT) From: Kalum Somaratna aka Grendel X-Sender: root AT darkstar DOT grendel DOT net To: djgpp AT delorie DOT com Subject: Re: inefficiency of GCC output code & -O problem In-Reply-To: <8d7i78.3vvqipv.0@buerssner-17104.user.cis.dfn.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk On 14 Apr 2000, Dieter Buerssner wrote: > To cite Donald E. Knuth from memory: > "Premature optimization is the devil of all programming." > Which time and time again has proven to be true...But why is that many people are so relectant to accept this fact... I hope it isn't off topic but you get people who say "hey I can do that same code in less number of keystrokes" and in the end the generated assembly is still the same. Another thing is that many people "falsely" belive is that using the ? operator provides faster code than a simple if statement. which is quite wrong. The ? operator causes reduced readability with no extra gain...a neagtive result in anyones equation... Grendel Hi, I'm a signature virus. plz set me as your signature and help me spread :)