Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Why is assembly more effecient than C?

Author: Danniel Corbit

Date: 00:01:19 09/28/98

Go up one level in this thread


On September 27, 1998 at 18:18:25, Robert Hyatt wrote:
[snip]
>not exactly.  IE I can't imagine that a C compiler + optimizer can beat
>hand-tuned asm code, even if I write both the C and the asm code.  The
>guys that write the optimizers are good, but they aren't as good as
>someone that has been programming asm code for 30 years...
>
>The main reason everyone doesn't use ASM code is portability, *not*
>speed.
Risc C compilers can almost always outdo hand written code except for very small
snippets.  For CISC I agree with you, especially Intel x86, since there are so
many good Intel assembly programmers.  For thousands or millions of lines of C,
an equivalent ASM is very hard to produce for Risc machines.



This page took 0.07 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

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