Gentoo Archives: gentoo-user

From: Frank Steinmetzger <Warp_7@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] CFLAGS for athlon 5350 apu?
Date: Fri, 19 Dec 2014 01:52:39
Message-Id: 20141219015233.GA2469@kern.lan
In Reply to: [gentoo-user] CFLAGS for athlon 5350 apu? by German
1 On Fri, Dec 19, 2014 at 02:38:48AM +0400, German wrote:
2 > Couldn't find those in documentation. Thank you
3
4 Well, why not give the standard "-O2 -march=native" a whirl, perhaps
5 seasoned with "-pipe". Or look at what march=native would actually yield:
6
7 Create a simple c file:
8
9 cat > test.c << EOF
10 int main() { return 0; }
11 EOF
12
13 and look at the output of gcc -v -Q -march=native -O2 test.c -o test
14
15 On my Celeron 847 (Sandy Bridge), this yields -march=corei7-avx with a lot
16 of disabled options which the Celeron doesn't have compared to an actual i7
17 (had to find this out so I could set up a client config for distcc with an
18 Haswell i5 as build host).
19
20
21 A minute of searching brought me to¹, so march=native will work.
22
23 ¹ http://www.phoronix.com/scan.php?page=news_item&px=MTY2MjI
24 --
25 Gruß | Greetings | Qapla’
26 Please do not share anything from, with or about me with any social network.
27
28 ATARI! We make top-notch toasters affordable!

Attachments

File name MIME type
signature.asc application/pgp-signature