1 |
On 07/26/2011 12:22 PM, pk wrote: |
2 |
> On 2011-07-26 22:36, Alokat wrote: |
3 |
> |
4 |
>> model name : Intel(R) Core(TM)2 Duo CPU L7100 @ 1.20GHz |
5 |
> <snip> |
6 |
> |
7 |
>> I guess *core2* is the right one? |
8 |
> Yes, acc. to: |
9 |
> http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel#Core_2_Duo.2FQuad.2C_Xeon_51xx.2F53xx.2F54xx.2F3360.2C_Pentium_Dual-Core_T23xx.2B.2FExxxx.2C_Celeron_Dual-Core |
10 |
> |
11 |
> HTH |
12 |
> |
13 |
> Best regards |
14 |
> |
15 |
> Peter K |
16 |
> |
17 |
Another good trick I've found on the forums is to run: |
18 |
|
19 |
$ gcc -### -e -v -march=native /usr/include/stdlib.h |
20 |
|
21 |
The last line of output will include the various CFLAGS that |
22 |
-march=native picks. In my case (Phenom II 955): |
23 |
|
24 |
"/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1" "-quiet" |
25 |
"/usr/include/stdlib.h" "-D_FORTIFY_SOURCE=2" *"-march=amdfam10" |
26 |
"-mcx16" "-msahf" "-mpopcnt"* "--param" "l1-cache-size=64" "--param" |
27 |
"l1-cache-line-size=64" "--param" "l2-cache-size=512" "-mtune=amdfam10" |
28 |
"-quiet" "-dumpbase" "stdlib.h" "-auxbase" "stdlib" "-o" |
29 |
"/tmp/ccR1PlNZ.s" "--output-pch=/usr/include/stdlib.h.gch" |
30 |
|
31 |
I typically use -march=native when I don't need to worry about distcc, |
32 |
or the options from that output that start with "-m". |
33 |
|
34 |
-Andy |