On Fri, Dec 19, 2014 at 02:38:48AM +0400, German wrote: > Couldn't find those in documentation. Thank you
Well, why not give the standard "-O2 -march=native" a whirl, perhaps
seasoned with "-pipe". Or look at what march=native would actually yield:
Create a simple c file:
cat > test.c << EOF
int main() { return 0; }
EOF
and look at the output of gcc -v -Q -march=native -O2 test.c -o test
On my Celeron 847 (Sandy Bridge), this yields -march=corei7-avx with a lot
of disabled options which the Celeron doesn't have compared to an actual i7
(had to find this out so I could set up a client config for distcc with an
Haswell i5 as build host).
A minute of searching brought me to¹, so march=native will work.
¹ http://www.phoronix.com/scan.php?page=news_item&px=MTY2MjI
--
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any social network.
ATARI! We make top-notch toasters affordable!
signature.asc
Description: Digital signature

