Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: C Compiler question

Author: Dann Corbit

Date: 02:26:19 04/14/04

Go up one level in this thread


On April 14, 2004 at 04:54:35, Christophe Drieu wrote:

>Hi, i recently tested 3 C compiler with my chess engine (Trex). I tested Visual
>C++.net 2002 , Intel C++ 8.0 and gcc 3.3.1 (mingw). gcc with -O3 option give me
>the fastest code. I tried profiling with Intel C++ but with no good result.
>Visual C has good option to optimize code but gcc it's always the best. So, is
>gcc the best compiler or am i a bad compiler user ? Visual C and Intel are not
>cheap software !
>
>If my memory is good, Christophe Theron work with gcc but use Visual C++ for
>commercial version of Tiger. Why ?

For me, Mingw GCC or Cygwin GCC are usually 1/3 slower or worse than that.

For the intel compiler, you will get the best results with PGO.

For the MS VC++ compiler, try these settings:
/Ox /Og /Ob2 /Oi /Ot /Oy /GT /GL /G6 /GA /GF /Zp16 /Gy /Gr



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.