Computer Chess Club Archives


Search

Terms

Messages

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

Author: Uri Blass

Date: 03:51:36 02/25/03

Go up one level in this thread


On February 24, 2003 at 21:15:36, Dann Corbit wrote:

>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

Unfortunately it does movei slghtly slower on my AMD 1000 Mhz.
Blend* is better.

>Use Runtime Library = Single Threaded (unless you need multiple threads)

This is already done.

>
>Under calling convention,  experiment with all 3.

fast call helped me to do it slightly faster.

>Under Structure Member Alignment, experiment with 4, 8, 16.

16 gives me the following warning

warning C4653: compiler option 'structure packing (/Zp)' inconsistent with
precompiled header; current command-line option ignored.

Unfortunately I find that the exe file of the previous version that was supposed
to be slower is slightly faster.

Maybe some things that made movei faster do it slower again after inline
optimization but all versions are faster by more than 2% thanks to any suitable
optimization.

Uri



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.