Gentoo Archives: gentoo-user

From: james <garftd@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] march cflag for Intel Pentium Dual-Core E2160 SLA8Z Malay processor
Date: Mon, 24 Sep 2018 15:30:23
Message-Id: 6598e077-35d8-599d-fa06-5f69c03fec0d@verizon.net
1 On 9/23/18 3:20 AM, Walter Dnes wrote:
2 > On Thu, Sep 20, 2018 at 01:00:39AM +0300, gevisz wrote
3 >> ????, 19 ????????. 2018 ??. ?? 11:38, Walter Dnes <waltdnes@××××××××.org>:
4 >
5 >>> According to
6 >>> http://www.cpu-world.com/sspec/SL/SLA8Z.html it has...
7 >>>
8 >>> MMX SSE SSE2 SSE3 SSSE3
9 >>
10 >> Do you mean that it would be enough to set
11 >> CFLAGS="-O2 -pipe mmx sse sse2 sse3 ssse3"
12 >> without setting the march cflag at all?
13 >
14 > Yes, that would work. Remember also to include in make.conf
15 >
16 > CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3"
17 >
18 > In your jpeg image, I see that the flags include mmx, sse, sse2, pni,
19 > and ssse3. "pni" == "Prescott New Instructions" == "SSE3". Looking at
20 > https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/x86-Options.html#x86-Options
21 > I suggest "-march=core2" with CPU_FLAGS_X86 same as above. The "core2"
22 > option uses MMX, SSE, SSE2, SSE3 and SSSE3 instructions, all of which
23 > show up in the listing on your jpeg.
24 >
25 > https://en.wikipedia.org/wiki/SSE3
26 >> SSE3, Streaming SIMD Extensions 3, also known by its Intel code name
27 >> Prescott New Instructions (PNI), is the third iteration of the SSE
28 >> instruction set for the IA-32 (x86) architecture.
29 >
30
31 Here is some short docs (by MG) on the subject, that are good to save
32 for future reference::
33
34
35 https://nlug.ml1.co.uk/2016/09/gentoo-portage-cpu_flags_x86-introduction-2015-01-28/5332
36
37 or in the gentoo wiki::
38 https://wiki.gentoo.org/wiki/CPU_FLAGS_X86
39
40 Note, some years ago, distcc was excellent as I used it daily. Like
41 most codes it changes/stresses over the years. So follow distcc
42 details closely if you intend for it's dependable results. Perhaps
43 someone (gentoo) is using it in a CI/CD configuration, which would
44 be of keen interest to many.
45
46
47 hth,
48 James