Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: MS .NET 2003 C++ compiler (command-line version) now downloadable

Author: Russell Reagan

Date: 17:07:25 04/19/04

Go up one level in this thread


On April 19, 2004 at 19:54:19, Mike Byrne wrote:

>Peter,
>
>That toggled my memory.  Thanks.  Now I have this issue that my modified Carfty
>code compiles under Intel but not MSCV net (it's all related to the RNG  I
>added)
>
>Did you find MSVC.net  faster than Intel for Crafty?  When I release the code,
>perhaps some kind soul programmer will help me and tell me what my problem is.
>
>Thanks,
>
>Michael

Using the makefile will probably not give you the optimal results under the MSVC
.NET 2003 compiler. The compiler settings that produce the fastest results will
probably depend on the target machine. After tinkering with the compiler
settings for a few hours (a while back), I was able to get Crafty 19.10 to run a
little faster than Aaron Gordon's version which was compiled with the Intel
compiler. It was only faster on AMD machines though. Using the IDE makes playing
with settings a lot easier of course, but that part isn't free :)

I'm not sure how the compiler handles things like "Whole Program Optimizations"
if you compile each file individually like the make file does. You might have to
give the compiler all of the files at once. I'm not sure.

I had the same experience when I used the Intel compiler for Linux. The make
file did not produce the fastest results. I had to play with compiler settings
and get IPO and PGO to work right, and then my compile was significantly faster
than what the make file generated.

My experience is that MSVC .NET 2003 will generate a slightly faster executable
if you take the time to play with the compiler settings and get them just right.
The "right" settings will probably vary depending upon whether you are using an
AMD or Intel machine, and what generation of processor (P4, P3, Centrino, ...),
and even the core (AMD Thoroughbred vs. Barton, etc.).



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.