Author: Vincent Diepeveen
Date: 14:06:31 12/14/01
Go up one level in this thread
On December 13, 2001 at 06:50:58, Severi Salminen wrote: > >>From what I understand of assembler it runs about a factor of 2-3 faster than >>good optimized C code, > >That _can't_ be true. Today's compilers generate more optimized code than good >assembler programmers. Have you ever looked at what code your C-compiler >produces? There are millions of cases where you just can't make it any faster. >What kind of a generalization do you mean when saying 2-3 faster? > >Severi I program in C basically but what i read above is not truth. A good assembly programmer will always outperform a higher programming language programmer. That's real obvious. the speedup depends upon what type of code you run. In case of chessprograms the speedup is real big. What i tried a lot in C is dissassembly my object files to see what kind of crap code the compiler produced, then rewrite my program such in C that it would be more acceptible code. Still any assembly programmer will outgun any compiler by HUGE margins, especially on the new processors. There is so much to win there. The only real question is: "is it worth the time?" In my case the answer is: "no". Best regards, Vincent
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.