Gentoo Archives: gentoo-amd64

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Re: x86_64 optimization patches for glibc.
Date: Wed, 27 Jul 2005 16:13:52
Message-Id: pan.2005.07.27.16.11.53.948926@cox.net
In Reply to: Re: [gentoo-amd64] x86_64 optimization patches for glibc. by netpython
1 netpython posted <3655f5d905072703096be71ed1@××××××××××.com>, excerpted
2 below, on Wed, 27 Jul 2005 10:09:35 +0000:
3
4 > Should i use -march=k8 or -march=athlon64 ? Or doesn't make any
5 > difference? My CPU is a AMD64 3000+
6
7 At this point, it makes absolutely no difference. The two, along with
8 -march=opteron, and I think one or two other aliases, are internally set
9 to exactly the same thing in gcc.
10
11 There's a small chance that at some point in the future the hardware paths
12 of the current aliases will diverge enough to make splitting the alias a
13 possibility, but practically speaking, even if that /were/ to happen, the
14 new diverged version would very likely get a different name, so as to
15 preserve backward compatibility for all those who set their configuration
16 when they were all aliases. Thus, the chance of there actually being a
17 difference between what is now treated exactly the same, is in reality,
18 /very/ small, a small chance on a small chance. Odds of winning the
19 lottery or dieing in a car accident are likely far higher.
20
21 Here, I use -march=k8, simply because "k8" is a distinctive and short
22 enough string, it's easy to pick out in moving text, as the compile output
23 scrolls by, thus making it easier for me to verify my CFLAGS as part of
24 the settings fed to gcc as they fly by. Other than that, it's entirely
25 arbitrary.
26
27 --
28 Duncan - List replies preferred. No HTML msgs.
29 "Every nonfree program has a lord, a master --
30 and if you use the program, he is your master." Richard Stallman in
31 http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html
32
33
34 --
35 gentoo-amd64@g.o mailing list