Author: Matt Taylor
Date: 16:14:35 01/03/03
Go up one level in this thread
On January 03, 2003 at 13:38:48, Robert Hyatt wrote: >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. That is definitely the best way to learn. Pick up an Intel manual (if you are interested in learning Intel assembly), write a little C code, and study the compiler output. Once you are familiar with the machine and instruction set, you can learn all the assembly optimization tricks out of AMD/Intel optimization manuals. I have a copy of the Intel 386 manual converted to HTML. The architecture hasn't changed significantly since the 386. If anyone is interested, e-mail me about it... -Matt
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.