Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Optimizing C code for speed

Author: Robert Hyatt

Date: 10:38:48 01/03/03

Go up one level in this thread


On January 02, 2003 at 04:58:26, Ed Schröder wrote:

>On January 02, 2003 at 03:57:55, Uri Blass wrote:
>
>>On January 02, 2003 at 02:40:46, Ed Schröder wrote:
>>
>>>On January 01, 2003 at 11:50:58, Lieven Clarisse wrote:
>>>
>>>>I was wondering if there is a good book about how to write efficient C code. I
>>>>am not talking about algorithms, but the way *how* to write things, eg
>>>
>>>http://www.agner.org/assem/
>>>
>>>Get this book: http://www.accu.org/bookreviews/public/reviews/z/z001445.htm
>>>
>>>Ed
>
>>I see from the review that this book is only for programmers with experience in
>>assembler.
>
>That's true, but if you want optimized code, you will need to.
>
>Ed
>

Right.  If you don't understand how the machine actually does what it does,
it is impossible to write the most efficient code for it...  using gcc with the
-S
and -O flags produces assembly listings that can certainly be educational.



>
>>Not for me.
>>
>>Uri



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.