Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Optimizing C code for speed

Author: Dann Corbit

Date: 11:53:17 01/02/03

Go up one level in this thread


On January 02, 2003 at 10:09:56, David Rasmussen wrote:
>On January 01, 2003 at 19:12:16, Bruce Moreland wrote:
>>I assume that the compiler is going to get it right.  If I need to check up on
>>the compiler later, I do.  But the point of a high level language is that you
>>can write for clarity, and this should be what you do by default.
>>
>>bruce
>
>So Duff's Device isn't used in Ferret?! :)

Actually, it is almost certain that Duff's device is used in Ferret.  A compiler
that allows loop unrolling is (in effect) using Duff's device.

By the way, I am 100% on the same page as you and Bruce when it comes to
"writing C code for clarity".

Typically, 90% of the time is spent in 10% of the code.  So we profile to
discover where a need exists and then work on only that hot spot.
[snip]



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.