Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: TSCP and timings

Author: Dann Corbit

Date: 13:38:11 08/06/99

Go up one level in this thread


On August 06, 1999 at 16:18:40, Dave Gomboc wrote:
>On August 06, 1999 at 11:52:45, Dann Corbit wrote:
>>On August 06, 1999 at 03:48:23, Dave Gomboc wrote:
>>>Okay, I have a copy of TSCP 1.3 sitting here.  You guys were testing with 6-ply
>>>searches from the start position?  What code do I need to add/change to get the
>>>timing info?  (I can't use unix "time" because the program is interactive.)
>>The version on my ftp site already has the changes done.
>>ftp://38.168.214.175/pub/TSCP.ZIP
>
>Uh, there's a whole ton of files in there that I wasn't expecting.  I presume
>some of them are profile information so some compiler(s) can do a better job at
>optimization?
>
>Many of the filenames are in all-caps... really annoying on a unix system.
>data.h is missing completely... did it get absorbed into something else?
>
>Also, there's a TSCP.ZIP inside of TSCP.ZIP (in addition to the tscp13.zip).
>Presumably this was accidental?
Probably so, I'll take a look.  Some of the other stuff is optimization.  Sorry
if some of my files are shouting, also.

>Here's a makefile that I was using for the "normal" TSCP:
>
>OBJS = board.o data.o eval.o main.o search.o
>HEADERS = data.h defs.h protos.h Makefile
>CC = gcc
>CFLAGS = -Wall -O2
>
>all:    tscp
>
>%.o:    %.c $(HEADERS)
>        $(CC) $(CFLAGS) -c $< -o $@
>
>%.s:    %.c $(HEADERS)
>        $(CC) $(CFLAGS) -S $< -o $@
>
>tscp:   $(OBJS)
>        $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o tscp
>        strip tscp
>
>clean:
>        $(RM) *.o core a.out *~ *.s *.bak
>
>
>No doubt the compiler options can be improved to add inlining, et cetera.  I see
>you have a tscp.c file which just #includes all of the .c files.  Which compiler
>aren't you able to instruct to do cross-file optimizations?
GCC sucks at it, for one.  If you compile that file with GCC, you will get a 30%
performance boost due to inlining, which it cannot do effectively without that
hack.  I don't use that makefile. Also, if you have the experimental version of
GCC, and you are on a Pentium Pro or better, these flags will give an enormous
boost:
-mpentiumpro -march=pentiumpro


>Sorry if this message sounds mostly like a rant. :-)  I was expecting something
>"small".  I think it'd be easier for me to just do diffs against the original
>files and use my makefile with some extra optimization options, unless you know
>of a good reason not to?
Just use the search.c that I have provided, and throw everything else away.  A
lot of the stuff provided is just documentation (old fashioned flow charts,
module diagrams and the like).



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.