Re: [AD] Pentium Pro optimizations under *nix

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> The only pitfalls I see involve non-intel targets, where -mcpu=pentium
> doesn't make much sense. I guess the solution would be to set a flag when
> a --enable*-optimizations option is given and let the script pick the
> default compiler switch if the flag is not set.

Too complicated.

> The other pitfall is that -mcpu and -march don't appear to be
> cross-platform switches. For instance, corresponding switches for Sparc
> targets would seem to be -mtune and -mcpu (!) respectively. At least that
> is the impression I get from the gcc docs.

Yes, and that's very unfortunate. However, I think the configure machinery
allows to specify CFLAGS when running make, so that the options are passed
to the compiler:

    make CFLAGS="-mtune=v9"

> Still, Intel targets (and in particular Linux) are the most immediate, so
> I'll focus on those first. I'll play around with things some more and post
> back when I get it to work.

Simply document that the options are valid on x86 targets only.

--
Eric Botcazou



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/