| Index of /cmpt364/tscp_mac |
Name Last modified Size Description
Parent Directory 19-Nov-2007 01:43 -
bd.c 06-Jun-2006 15:43 24k
board.c 06-Jun-2006 15:43 24k
book.c 06-Jun-2006 15:43 3k
book.txt 06-Jun-2006 15:43 19k
data.c 06-Jun-2006 15:43 6k
data.h 06-Jun-2006 15:43 2k
defs.h 06-Jun-2006 15:43 2k
eval.c 06-Jun-2006 15:43 10k
main.c 06-Jun-2006 15:43 11k
protos.h 06-Jun-2006 15:43 3k
search.c 06-Jun-2006 15:44 6k
yet further changes 11/12 by pshields 1) first_one has now been written in ppc assembly, which reduces the time of the benchmark to about 3.5 seconds with -O3 optimization on my g3. This is about .62 x as fast as Tom Kerrigan's Athlon 2000+, and would correlate with a score of about 1170 on the posted benchmarks. more changes 11/6 by pshields 1) first_one and last_one have been moved into board.c to eliminate warnings. The C version of first_one has been recoded in C to reduce the time on the benchmark to about 12-13 seconds (with optimization -O3) on my g3. (The book works if you make sure book.txt is in the same directory as as the executable.) new changes 11/1 by pshields 1) The last_one function in protos.h has been converted into PPC assembly code. The project can now be compiled with -O3 flag which will allow inlining the function. It reduces the time on the benchmark to about 47 seconds on my g3. tscp_mac--changes by P. Shields These files have been modified from the TSCP181_msj version (with bitboards by MJ Sherwin) from Tom Kerrigan's site: 1) The 80x86 assembly code in protos.h has been replaced by high level C code. To make it fast again, this C code would have to be turned into PPC assembly. 2) The definitions at the bottom of defs.h have been added to provide a 64 bit type for the bitboards and definitions of the structs which are needed to get the system time using gettimeofday() instead of the deprecated (in 10.3) ftime(). 3) The function get_ms() in main.c has been rewritten to use gettimeofday. The #include has been changed to <time.h> from <timeb.h>. This version is _very_ slow, about 77 seconds to complete the benchmark.