Re: Stupid question

From: P
Date: Tue Nov 23 2004 - 07:26:59 EST


Nix wrote:
On 23 Nov 2004, Gene Heskett yowled:

On Monday 22 November 2004 09:32, P@xxxxxxxxxxxxxx wrote:

Gene Heskett wrote:

Greetings;

Silly Q of the day probably, but what do I set in a Makefile for
the -march=option for building on a 233 mhz Pentium 2?

http://www.pixelbeat.org/scripts/gcccpuopt

Thanks very much. Obviously someone else needed to scratch this itch too. This should produce the correct results when running on the target machine. Here, it produces this:
[root@coyote CIO-DIO96]# sh ../gcccpuopt
-march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow


... which is peculiar, as -mmmx -msse is redundant, as is -mmmx -m3dnow,
and all three of those flags are the end are implied by -march=athlon-xp
anyway.

(-mfpmath=sse *is* useful on non-64-bit platforms, though.)

I added those in so that they were explicit.
They do no harm. I had a version that didn't print
these redundant options but got many requests
about whether they were needed. You can't win.

Pádraig.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/