1 |
On Sun, Apr 11, 2010 at 03:20:50AM +0100, Kerin Millar wrote: |
2 |
> On 10/04/2010 23:06, luis jure wrote: |
3 |
> > |
4 |
> > hello list, |
5 |
> > |
6 |
> > after many years without a hardware upgrade, i'll be receiving my new |
7 |
> > computer next week: intel i7 920 cpu, 6 GB ram, asus p6t mobo. |
8 |
> > |
9 |
> > i'm pretty excited, i imagine that at first i'll be shocked at the |
10 |
> > difference with the ancient machine i'm using now. |
11 |
> > |
12 |
> > now my question: searching a bit for the best compilation flags for |
13 |
> > this processor, i found this at gentoo-wiki: |
14 |
> > |
15 |
> > CHOST="x86_64-pc-linux-gnu" |
16 |
> > CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe" |
17 |
> > CXXFLAGS="${CFLAGS}" |
18 |
> > (http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel) |
19 |
> > |
20 |
> > on the other hand, a thread at http://forums.gentoo.org says that the |
21 |
> > wiki page is outdated, and that -march=native should do the job without |
22 |
> > any further tweaks like -msse4 etc. |
23 |
> |
24 |
> That is correct; -march=native will indeed do the job. The CFLAGS |
25 |
> example you cite is clearly an interpretation of the flags that the |
26 |
> native target would result in anyway. |
27 |
> |
28 |
> With respect to my Intel Xeon E3113, -march=native appears to equate to: |
29 |
> |
30 |
> -march=core2 -mtune=core2 -msahf -msse4.1 --param l1-cache-size=32 |
31 |
> --param l1-cache-line-size=64 |
32 |
> |
33 |
> In short, use "native" and let the compiler take care of the details. |
34 |
> |
35 |
> Cheers, |
36 |
> |
37 |
> --Kerin |
38 |
> |
39 |
> |
40 |
|
41 |
There's a thread in Installing Gentoo where a dev (can't remember which), that says native isn't the best option, but the best option indeed is to specify your arch. See these threads: |
42 |
http://forums.gentoo.org/viewtopic-t-821639.html |
43 |
http://forums.gentoo.org/viewtopic-t-821370.html |
44 |
|
45 |
-- |
46 |
Zeerak Waseem |