Article View: gnu.chess
Article #5371Re: Problem with gnuchess on RS6k running AIX3.2.4Dear Mr. Mann,
From: Chua Kong Sian
Date: Wed, 13 Oct 1993 00:47
Date: Wed, 13 Oct 1993 00:47
59 lines
2682 bytes
2682 bytes
: To refresh your memory, here is what Tom said: : > Here is a list of the flags/compilers I have tried on RS/6000's: : > : > CFLAGS= -O2 -funroll-loops # Breaks with gcc-2.3.3, AIX-3.2.2 : > CFLAGS= -O -qchars=signed # Seems to work for cc on RS/6000 AIX-3.2.2 : > CFLAGS= -O2 # Fails with gcc-2.3.3 on AIX-3.2.2 : > CFLAGS= # Seems to work with gcc-2.3.3 on AIX-3.2.2, and cc. : > CFLAGS= -O # seems to work with gcc-2.3.3 on AIX-3.2.2, and cc. : > CFLAGS = -funroll-loops # Seems to work with gcc-2.3.3 on AIX-3.2.2 : > CFLAGS = -O -funroll-loops # fails with gcc-2.3.3 on AIX-3.2.2 : > : > I personally use the "CFLAGS = -O" option : Also, Chua Kong Sian said: : > Well, I do have gnuchess on AIX v 3.2 (?) working fine. Using the resident : > cc compiler, I have the flags as : > : > CFLAGS = -O3 -D_POSIX_SOURCE : Note that Kong Sian was NOT using gcc. You have to fix a small bug in : gnuchess.h to compile gnuchess without gcc. Use the following patch: : iff -c gnuchess.h.~1~ gnuchess.h : *** gnuchess.h.~1~ Tue Jun 22 06:49:33 1993 : --- gnuchess.h Wed Sep 15 11:22:27 1993 : *************** : *** 27,33 **** : : #ifndef __GNUC__ : #define inline : ! #else : #define huge : #endif : : --- 27,35 ---- : : #ifndef __GNUC__ : #define inline : ! #endif : ! : ! #ifndef MSDOS : #define huge : #endif : --Tim Just to add to this, I have tried using gcc with -O2 -funroll-loops. This does not work (gcc 2.4.5). -O -funroll-loops does work, but of course you lose that performance, almost double. In the end, I decided to simply use the resident cc compiler with flags -O2 -D_POSIX_SOURCE -Dhuge= . I have not encountered any illegal moves with these flags. Well, I've not play gnuchess vs gnuchess, but I did run quite a number of gnuan analysis and it has not given any errors so far. Kong Sian kongsian@nsrc.nus.sg
Technical Details
Message-ID:
<29fj6h$ei2@nuscc.nus.sg>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!newsserver.technet.sg!nuscc.nus.sg!nsrccksReferences:
<29ecot$10j1@info2.rus.uni-stuttgart.de> <29evru$okq@src-news.pa.dec.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,c796eb222ea1e663 X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1993-10-12 20:42:07 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!newsserver.technet.sg!nuscc.nus.sg!nsrccks From: nsrccks@leonis.nus.sg (Chua Kong Sian) Newsgroups: gnu.chess Subject: Re: Problem with gnuchess on RS6k running AIX3.2.4Dear Mr. Mann, Date: 13 Oct 1993 00:47:13 GMT Organization: National University of Singapore Lines: 59 Distribution: world Message-ID: <29fj6h$ei2@nuscc.nus.sg> References: <29ecot$10j1@info2.rus.uni-stuttgart.de> <29evru$okq@src-news.pa.dec.com> NNTP-Posting-Host: leonis.nus.sg X-Newsreader: TIN [version 1.2 PL0]