Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Somewhat Off-Topic GCC 3.0 compiler results [With TSCP]

Author: David Blackman

Date: 02:36:14 06/20/01

Go up one level in this thread


On June 19, 2001 at 13:11:09, Dann Corbit wrote:

>On June 19, 2001 at 06:16:09, David Blackman wrote:

>>With older gcc's it was often useful to add the flag -fomit-frame-pointer . I
>>don't know if this is still true for GCC 3.0, but it might be worth a try.
>
>That's automatic when you have selected -O3 (If I recall correctly).  Worth a
>try anyway, I suppose.  I am not expecting miracles.  There was quite a build-up
>so I was initially expecting something great.

With older GCCs running on Linux it definitely wasn't automatic. But this could
be different with GCC 3.0 on MS-Windows.

Another try is fno-exceptions . This only makes a difference for C++ , and
obviously it is only a good idea if the code doesn't use exceptions. It helps
sometimes because the GCC code for exceptions has been a bit slow and
cumbersome, and it gets inserted even in places that don't use it in case they
have to pass exceptions through. Are you using C or C++ here?

Yet another idea is to try it on Linux and don't use position independant code.
That frees up another general purpose register and often gets things a bit
faster.

I'd be surprised if all this was enough to catch up with MSVC, but it should
help a little.



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.