Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: question about errors when I change my C code to C++

Author: Dann Corbit

Date: 18:15:36 02/24/03

Go up one level in this thread


On February 24, 2003 at 20:31:18, Uri Blass wrote:

>On February 24, 2003 at 19:32:22, Dann Corbit wrote:
>
>>On February 24, 2003 at 18:57:17, Uri Blass wrote:
>>[snip]
>>>I do not know how to select the option inline every suitable function and I now
>>>only optimize for speed(I use VC++6).
>>
>>From Project Settings/C++ tab,
>>Choose "Optimizations" category.
>>In the dropdown list, select "Any Suitable"
>
>Thanks
>
>It seems to help me to get speed improvement of more than 5%
>
>My second computer is busy in my correspondence game so I used my slower
>computer and the code of the latest version is not in the slower computer,
>but even a slightly slower version than the latest version ran more than 5%
>faster than the latest version based on my tests.

Also, do these things:
Project Settings/Code Generation
Processor = Pentium Pro
Use Runtime Library = Single Threaded (unless you need multiple threads)

Under calling convention,  experiment with all 3.
Under Structure Member Alignment, experiment with 4, 8, 16.

Choosing Pentium Pro for architecture will not affect the processors on which
the code can run.  But on a Pentium Pro or higher chip it will run faster.  It
will actually run a bit slower on old chips, but it will still function
correctly.



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.