Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty 15.8 on Macintosh

Author: Carsten Kossendey

Date: 03:29:53 05/20/98

Go up one level in this thread


On May 19, 1998 at 22:12:39, William Bryant wrote:

>Help from Robert Hyatt or Carsten Kossendey would be appreciated.
>
>I'm having difficulty getting the source code to crafty 15.8
>to compile.  The compiler (CW Pro 3) chokes on singular.c and
>threat.c.

You don't need them, it compiles fine without these (at least under Pro
1).

>Most of the error messages suggest the compiler no longer
>recognizes some of the defines in chess.h
>
>I modified chess.h so that the first definition is
>	#if !defined(CPUS)
>	#  define CPUS 1
>	#  undef  SMP
>	#endif
>as per an old message post of Carsten's

This isn't necessary either, 15.8 compiles "out of the box". You just
have to exclude thread.c, threat.c, searchmp.c, and singular.c from your
project.

>Also, Carsten, any thoughts on why the compiler chokes on the file
>option.c when the optimization setting is 3 or higher.  Is this an
>issue with memory available to the compiler.

MrC[pp] chokes on it as well. I suspect this is either because there are
so deeply nested if-else constructions or because there are so much
strings in it (you may try fiddling with the "pool strings" and "store
static data in TOC" settings). CW Pro 1 compiles everything nicely at
Level 4, but Metrowerks is great at breaking things which worked before
(this is why I am still using Pro 1, actually.)

Coming to the sad part of the story, while CW compiles 15.5 and later
without any complaints, the compiled versions don't run properly most of
the time. I happened to track this down the the repetition list getting
screwed up but neither Bob nor I have an idea as to how and why this
happens. 15.4 worked fine and there were apparently no changes to that
part of Crafty for 15.5 ...

>Thanks in advance
>
>William Bryant
>wbryant@ix.netcom.com



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.