Compiling with optimization help

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Compiling with optimization help

Postby juan dela cruz » 01 Dec 2006, 20:41

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
juan dela cruz
 
Posts: 31
Joined: 29 Jun 2006, 18:47
Location: PHILIPPINES

Re: Compiling with optimization help

Postby Pradu » 01 Dec 2006, 22:17

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.
User avatar
Pradu
 
Posts: 343
Joined: 12 Jan 2005, 19:17
Location: Chandler, Arizona, USA

Re: Compiling with optimization help

Postby juan dela cruz » 02 Dec 2006, 05:14

Thanks Pradu. I'll take your word for it. I just need a second opinion.

Juan
juan dela cruz
 
Posts: 31
Joined: 29 Jun 2006, 18:47
Location: PHILIPPINES


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 2 guests