Re: [SLE] Does Gcc automatically use the features of your Processor eg SSE
![](https://seccdn.libravatar.org/avatar/b50a114fa525b8dd8d8a201834e4e5d4.jpg?s=120&d=mm&r=g)
Thanks I shall have a go with that later !! dids
1. Yes 2. No 3. gcc -march=i686 ... or gcc -mcpu=i686
If you are compiling code with a configure script then use something like
CFLAGS="-O2 -march=i686" ./configure ... for C code, and CXXFLAGS="-O2 -march=i686" ./configure ... for C++ code
The difference between -mcpu and -march is that -mcpu optimises for the cputype given but runs on other cpus, -march optimises but doesn't guarantee to run on other cpus.
JDL
dids wrote:
[1] I'm just wondering if when you compile a program, GCC can optimise the code for use with your processor. [2] And if so, is it set to do this automatically ?
[3] If not, how and what would you put for a Pentium III ?
dids
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
![](https://seccdn.libravatar.org/avatar/d97a3d892fbd3435e827b9f291573e23.jpg?s=120&d=mm&r=g)
What would be the -march setting for an AMD Athlon "Thunderbird" CPU? Thanks for any help, Steven On Thursday 23 August 2001 06:54 am, dids wrote:
Thanks I shall have a go with that later !!
dids
1. Yes 2. No 3. gcc -march=i686 ... or gcc -mcpu=i686
If you are compiling code with a configure script then use something like
CFLAGS="-O2 -march=i686" ./configure ... for C code, and CXXFLAGS="-O2 -march=i686" ./configure ... for C++ code
The difference between -mcpu and -march is that -mcpu optimises for the cputype given but runs on other cpus, -march optimises but doesn't guarantee to run on other cpus.
JDL
dids wrote:
[1] I'm just wondering if when you compile a program, GCC can optimise the code for use with your processor. [2] And if so, is it set to do this automatically ?
[3] If not, how and what would you put for a Pentium III ?
dids
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
-- -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Steven Hatfield http://www.knightswood.net Registered Linux User #220336 ICQ: 7314105 Useless Machine Data: Running SuSE Linux 7.2 Professional and KDE2.2 9:38am up 3 days, 12:42, 2 users, load average: 0.15, 0.08, 0.02 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Random Quote: "A computer lets you make more mistakes faster than any invention in human history... with the possible exception of handguns and tequila." - Anon.
![](https://seccdn.libravatar.org/avatar/8ce4efecf1119dcbfc03135ad33fee46.jpg?s=120&d=mm&r=g)
I think it's -march=k6, though I've only used -march=i686 and -mv8 (a sparc optimisation) :-) JDL Steven Hatfield wrote:
What would be the -march setting for an AMD Athlon "Thunderbird" CPU? Thanks for any help, Steven
participants (3)
-
dids
-
John D Lamb
-
Steven Hatfield