Gentoo Archives: gentoo-user

From: Hasan SAHIN <hasan.sahin@×××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] -march=native
Date: Tue, 29 Jun 2010 22:08:57
Message-Id: 4C2A990E.6090401@gmx.com
In Reply to: Re: [gentoo-user] -march=native by Bill Longman
1 29-06-2010 22:03, Bill Longman yazmış:
2 > On 06/29/2010 05:54 PM, Hasan SAHIN wrote:
3 >
4 >> Hello all,
5 >>
6 >> I am using Athlon64 X2 processor with the
7 >> CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" option.
8 >>
9 >> Can I use the -march=native option instead of that?
10 >>
11 > Sorry, Hasan, I dropped my "3"s.
12 >
13 > -msse3 and -march=k8-sse3
14 >
15 Hi Bill,
16
17 I have read the safe flags document and it says that :
18
19 /GCC 4.2 introduces a new -march option, -march=*native*, which
20 automatically detects the features your CPU supports and sets the
21 options appropriately. If you have an Intel or AMD CPU and are using
22 >=sys-devel/gcc-4.2.3, using -march=native is recommended. Do *not* use
23 -march=native if you use distcc on nodes with different architectures as
24 this may produce unusable code. /
25
26 which I understood, I can use the -march=native option instead of
27
28 CFLAGS="-march=k8-msse3 -O2 -pipe -fomit-frame-pointer"
29
30 is it true?
31
32 Regards,
33 Hasan.

Replies

Subject Author
Re: [gentoo-user] -march=native Bill Longman <bill.longman@×××××.com>