Author: Scott Gasch
Date: 10:25:56 12/09/04
I recently wrote a perl script to permute the order of my object files (actually to permute logical clumps of object files, there are too many indivitual onject files to permute them all) on the commandline to the linker that generates my engine binary and I thought I'd share the results here. Once I had linked a ton of these executables I then ran a 10 second benchmark on each one and saved the logs. Then I wrote another script to parse the logs and look at the results. These numbers are with gcc 3.4.2 (20040806) on FreeBSD running on an Athlon 1.2ghz single proc. Best speed 126934.3 Worst speed 115755.8 Average speed 122788.6 So messing around with the link order doesn't buy you much but it does seem to do something. Maybe a swing of about 4% (i.e. 8% total speed diff between the best case and the worst case). FWIW here is the winning link order... filenames are pretty self-explanatory: main.o root.o search.o draw.o hash.o dynamic.o generate.o see.o move.o movesup.o eval.o pawnhash.o bitboard.o command.o script.o input.o vars.o util.o list.o fbsd.o gamelist.o board.o ics.o san.o fen.o book.o bench.o mersenne.o piece.o sig.o data.o probe.o egtb.o Scott
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.