Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Question about register declarations i C.

Author: Guido

Date: 08:35:44 05/07/00

Go up one level in this thread


On May 06, 2000 at 16:35:51, Flemming Rodler wrote:

>Hi,
>
>I am right in assuming that the register declaration i C is superfluous since
>mordern compiles usually are very good at optimizing code without my advice as
>to which variable are heavly used and should therefore be placed in a register?
>
>I have tried to fiddle around with placing register declerations in front of
>various variables in a move generation function that i am working on and it
>seems to have no effect at all.
>
>By the way im using gcc with -O3 turned on.
>
>
>Thanks for any suggestions
>Flemming

I agree, but you can try to add the switch  -fomit-frame-pointer  (obviously
with -O3)

In certain cases it is possible to save about 10 %

Guido



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.