[gentoo-user] march to cross-compile ASUS laptop
Hello, I want to use a build host to create packages for a L402N Asus laptop. % grep -m1 -A3 "vendor_id" /proc/cpuinfo vendor_id : GenuineIntel cpu family : 6 model : 92 model name : Intel(R) Celeron(R) CPU N3350 @ 1.10GHz intel has this specs: http://ark.intel.com/products/95598/Intel-Celeron-Processor-N3350-2M-Cache-up-to-2_4-GHz and, in the following website: https://en.wikichip.org/wiki/intel/celeron/n3350 It says that the microarchitecture is apollo-lake. What would be the proper march configuration for this box? -- Andrés Becerra Sandoval
Re: [gentoo-user] march to cross-compile ASUS laptop
On Tue, Jul 11, 2017 at 6:06 PM, Andrés Becerra Sandoval wrote: > > It says that the microarchitecture is apollo-lake. > > What would be the proper march configuration for this box? > Per the GCC documentation, here are the options you can pass to -march (described under the section for -mtune): https://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc/i386-and-x86_002d64-Options.html https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/x86-Options.html https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gcc/x86-Options.html Surprisingly it was hard to find this page of the documentation, even knowing what I was looking for. You should also refer to the Wiki documentation for -march, found here: https://wiki.gentoo.org/wiki/GCC_optimization#-march. Specifically I need to point out the use of cpuinfo2cpuflags-x86. If you are finding it hard to find the corresponding -march/-mtune setting for your processor by name, you may need to select an equivalent setting by looking at the features your CPU supports. You can also ask the list. R0b0t1.
Re: [gentoo-user] march to cross-compile ASUS laptop
On Tue, Jul 11, 2017 at 7:06 PM, Andrés Becerra Sandoval wrote: > It says that the microarchitecture is apollo-lake. > > What would be the proper march configuration for this box? > > > -- > Andrés Becerra Sandoval > apollo-lake.= goldmont As gcc appears to have no support as of yet, I would use "-march=silvermont" goldmont is basically silvermont+
Re: [gentoo-user] march to cross-compile ASUS laptop
On Tue, Jul 11, 2017 at 06:06:26PM -0500, Andrés Becerra Sandoval wrote: >Hello, > >I want to use a build host to create packages for a L402N Asus laptop. > >% grep -m1 -A3 "vendor_id" /proc/cpuinfo >vendor_id : GenuineIntel >cpu family : 6 >model : 92 >model name : Intel(R) Celeron(R) CPU N3350 @ 1.10GHz > >intel has this specs: > > [1]http://ark.intel.com/products/95598/Intel-Celeron-Processor-N3350-2M-Cache-up-to-2_4-GHz > >and, in the following website: > > [2]https://en.wikichip.org/wiki/intel/celeron/n3350 > >It says that the microarchitecture is apollo-lake. > >What would be the proper march configuration for this box? > Hi, if you have Gentoo already installed on the box, make sure that you configured the same compiler version as on the build host (gcc-config) and then run: gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1" Everything after "-march=..." should be what your gcc version would use when using march=native on the laptop. WKR Hinnerk