Subject: Re: sparc/sparc64 gcc CFLAGS for optimization
To: Brian A. Seklecki <lavalamp@burghcom.com>
From: David Brownlee <abs@netbsd.org>
List: port-sparc64
Date: 11/27/2001 21:21:48
On Tue, 27 Nov 2001, Brian A. Seklecki wrote:
> On Tue, 27 Nov 2001, David Brownlee wrote:
> >
> > -msupersparc gets you the int multiply and divide which should
> > be a win :)
> >
>
> According to the docs on GCC's site:
>
> ----
>
> -mcypress
> -msupersparc
> These two options select the processor for which the code is
> optimized. With -mcypress (the default), the compiler optimizes code for
> the Cypress CY7C602 chip, as used in the SparcStation/ SparcServer 3xx
> series. This is also appropriate for the older SparcStation 1, 2, IPX,
> etc. With -msupersparc the compiler optimizes code for the SuperSparc
> CPU, as used in the SparcStation 10, 1000 and 2000 series. This flag also
> enables use of the full SPARC v8 instruction set.
>
> **** These options are deprecated and will be deleted in GNU CC 2.9. They
> have been replaced with -mcpu=xxx. ****
>
> ----
>
> If that's the case, I suppose that will cause problems if EGCS is ever
> replaced by straigh GCC 3?
>
I'd tend to suggest cpuflags which outputs -mcpu=supersparc for
gcc 2.90 and later and -msupersparc for earlier compilers
automatically :)
> Also, would it be possible to get some comments about these in the sparc
> or sparc64 FAQ on the webpage?
Always welcomed - would you be willing to write up an entry?
--
David/absolute -- www.netbsd.org: No hype required --