Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: compiler question

Author: Landon Rabern

Date: 19:57:47 05/08/00

Go up one level in this thread


On May 08, 2000 at 05:28:33, Bas Hamstra wrote:

>On May 08, 2000 at 01:06:34, Landon Rabern wrote:
>
>>On May 08, 2000 at 00:32:39, Robert Hyatt wrote:
>>
>>>On May 07, 2000 at 19:27:11, Landon Rabern wrote:
>>>
>>>>When compiling with Maximize Speed on in release mode in MSVC++ 6.0 I run at
>>>>about 190,000 nps, but in DJGPP with max optimizations I can get around 330,000
>>>>nps in the same position.  Isn't Visual C++ supposed to be faster? Any ideas on
>>>>whats going on?
>>>>
>>>>Thanks,
>>>>
>>>>Landon W. Rabern
>>>
>>>
>>>I would suspect you are not getting all the MSVC optimizations turned on
>>>correctly.  It is clearly better than GCC...
>>
>>I did customize and put them on, but still slow.  What command-line options do
>>you use?
>>
>>Thanks,
>>
>>Landon
>
>Just turn on "maximize speed", that's all. There can be rather large differences
>between compilers, depending on the programs that you are compiling. But I have
>personally never seen a program where VC was not fastest.
>
>I discovered kind of the opposite from you:
>
>               VC              GCC              BORLAND
>
>program 1:     350 KNPS        350 KNPS         275 KNPS
>program 2:     750 KNPS        450 KNPS         600 KNPS
>
>
>So in for the first prog Borland is slowest, but for the second program GNU is
>slowest! For GNU: -O2 -fomitframepointer -mpentiumpro.
>
>A possible explanation is that I do an asm LastOne in Borland/VC and not in GNU.

with djgpp I use -O3 fomitframepointer -finlinefunctions

Landon



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.