Author: Severi Salminen
Date: 10:00:13 03/12/01
Go up one level in this thread
On March 12, 2001 at 10:25:55, Leen Ammeraal wrote: >Working with Visual C++ 6.0, Professional Edition, >I wondered if I can get faster code simply by >using some compiler settings/options or any >other VC++ tool. At the moment, all I do >to speed up my chess engine is by using >Project | Settings | C/C++ >and, with Category: General, I select >Optimizations: Maximize Speed. A few things: 1. Alter the order of your functions. I have still most of my functions in main.c and altering the order (maybe putting the ones which are needed most often first, not sure though) of functions has given me 0-20% speedups. 2. Download the Intel compiler plug-in from www.intel.com. This can do the above automatically among other things (needs some .cfg editing...). Using default settings it made slower code but using many optimization methods it will probably produce a lot faster code - at least according to Dann Corbit. 3. You could also try to set the structure member alignment to 16 bytes - it might help or probably not. 4. Inlineing might also speed up your code - I define short (assembly) functions which are used often with __forceinline. This speeds up code. But if I turn on the "any suitable" option in "inline function expansion" I go a lot slower - try it yourself. Severi
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.