Gentoo Archives: gentoo-user

From: R0b0t1 <r030t1@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] march to cross-compile ASUS laptop
Date: Wed, 12 Jul 2017 03:20:08
Message-Id: CAAD4mYi7R8XShUWSRJgpkWmVE-L=GdW1XHi2xQiuK-59_1Qz6A@mail.gmail.com
In Reply to: [gentoo-user] march to cross-compile ASUS laptop by "Andrés Becerra Sandoval"
1 On Tue, Jul 11, 2017 at 6:06 PM, Andrés Becerra Sandoval
2 <andres.becerra@×××××.com> wrote:
3 >
4 > It says that the microarchitecture is apollo-lake.
5 >
6 > What would be the proper march configuration for this box?
7 >
8
9 Per the GCC documentation, here are the options you can pass to -march
10 (described under the section for -mtune):
11
12 https://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc/i386-and-x86_002d64-Options.html
13 https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/x86-Options.html
14 https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gcc/x86-Options.html
15
16 Surprisingly it was hard to find this page of the documentation, even
17 knowing what I was looking for.
18
19 You should also refer to the Wiki documentation for -march, found
20 here: https://wiki.gentoo.org/wiki/GCC_optimization#-march.
21
22 Specifically I need to point out the use of cpuinfo2cpuflags-x86. If
23 you are finding it hard to find the corresponding -march/-mtune
24 setting for your processor by name, you may need to select an
25 equivalent setting by looking at the features your CPU supports. You
26 can also ask the list.
27
28 R0b0t1.