Page 1 of 1

Compiling with optimization help

PostPosted: 01 Dec 2006, 20:41
by juan dela cruz
Assuming that you have a basic C/C++ compiler but doesn't have the PGO capability, is there a relatively equal alternative command line options to gain the same compiled results?
1, if we use GCC
2. if we use MSVC++6
3. if we use MSVC++8 (w/out pgo)
etc...

I'm just an intermediate on this subject, and considering that efficient compilations play a big role on chess engine performance, I would like to hear other opinions aside from the ones I know. Chess engine programs need a special optimization technique during compiling not like other non-gaming programs.


Juan

Re: Compiling with optimization help

PostPosted: 01 Dec 2006, 22:17
by Pradu
juan dela cruz wrote:Assuming that you have a basic C/C++ compiler but doesn't have the PGO capability, is there a relatively equal alternative command line options to gain the same compiled results?
1, if we use GCC
2. if we use MSVC++6
3. if we use MSVC++8 (w/out pgo)
etc...


I don't think so, but if you are talking about optimized compilation you can try the compiler flag -O2. Most compilers should support this. The best compiler for P4 is the Intel Compiler, but perhaps MSVC can do better on the AMDs and in 64-bits. GCC has PGO IIRC.

Re: Compiling with optimization help

PostPosted: 02 Dec 2006, 05:14
by juan dela cruz
Thanks Pradu. I'll take your word for it. I just need a second opinion.

Juan