Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: some other points adressed

Author: Robert Hyatt

Date: 11:40:27 08/07/03

Go up one level in this thread


On August 07, 2003 at 13:59:48, Alessandro Damiani wrote:

>>
>>>crafty is very poor example of programming:
>>>  - inline assembly everywhere
>>>  - no nice loops but all written out black & white even
>>>  - every piece written out
>>>  - it doesn't compile very well with gcc or visual c++ thanks to
>>>    all of that hacking and hyatt doesn't care frankly.
>>>
>>
>>Right.  It won't compile on linux, windows, AIX, HP-UX, IRIX, UNICOS,
>>Solaris, VMS, Macintosh, Cray, True-64.  It Really only compiles on
>>linux, and really only on my particular machine in my office.
>
>:)) After reading Vincent's comments I am convinced you not only have inline
>assembly _everywhere_ but you even hacked the CPU!! :)))))
>
>Alessandro


Correct.  Crafty is about 99% assembly.  Don't let the fact that if you
count the total number of lines of assembly, and compare that to the total
number of lines of C code, there is only a 100:1 ratio.  And ignore the
fact that most lines of C code turn into several machine instructions.

Of course Crafty is almost all assembly.  :)




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.