Gentoo Archives: gentoo-amd64

From: Brandon Edens <brandon@××××××.edu>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] CFLAGS for Core2?
Date: Fri, 22 Sep 2006 16:20:02
Message-Id: 20060922161752.GB6930@gizmo.lan
In Reply to: Re: [gentoo-amd64] CFLAGS for Core2? by Eric Augustus
1 I generally check safe cflags.
2 http://gentoo-wiki.com/Safe_Cflags
3
4 I have a friend that has riced out Gentoo boxes twice now and had problems due
5 to the cflags he chose. Of course, your results may vary.
6
7 Brandon
8
9
10 On Thu, Sep 21, 2006 at 10:52:42PM -0500, Eric Augustus wrote:
11
12 > On Wed, Sep 20, 2006 at 04:25:12PM -0400, Jack Lloyd wrote:
13 > >
14 > > Tomorrow my new Core 2 workstation should be arriving, and reading
15 > > through the 2006.1 amd64 install notes and so forth, the recomended
16 > > CFLAGS for EM64T CPUs is -march=nocona. However as that is tuned for
17 > > 64-bit enabled Netburst rather than Conroe, I'm wondering if anyone
18 > > had thoughts on good flags. In particular as (to the extent that I
19 > > know anything about microarchitecture), Conroe seems closer to a K8
20 > > than a P4, especially with regards to pipeline length and execution
21 > > resources, I'm not sure that P4/Netburst tuning is the right thing to
22 > > do. But the GCC docs say that -march=k8 enables 3dnow, which Intel
23 > > chips don't have. So, right now the "seems likely" options would
24 > > be:
25 > >
26 > > -march=k8 -mno-3dnow -msse3
27 > > -march=nocona
28 > > -march=pentium-m -m64 [saw this suggested in the forums, seems like a bad idea]
29 > >
30 >
31 > I've got a Dell XPS 700 with an E6600, and, like you, wondered what were
32 > the "best" CFLAGS to choose. Lacking any solid directions, I went with:
33 >
34 > CFLAGS="-march=nocona -O2 -pipe"
35 > CHOST="x86_64-pc-linux-gnu"
36 > CXXFLAGS="${CFLAGS}"
37 > MAKEOPTS="-j3"
38 >
39 > Simple, and nothing fancy.
40 >
41 > I'm happy to say that my 2006.1 amd64 install seems to be working great.
42 > I'm running unstable, btw, which I've been doing on my old athlon64 for
43 > a couple years now.
44 >
45 > I'm still tweaking my kernel options though.
46 >
47 > P.S. It's amazing how fast a kernel builds and emerges happen on the new
48 > Core 2.
49 >
50 > --
51 > Eric Augustus
52 > shrike@×××××××××.com
53 > -----------------
54 > Are we on STRIKE yet?
55 > --
56 > gentoo-amd64@g.o mailing list
57 >

Replies

Subject Author
Re: [gentoo-amd64] CFLAGS for Core2? "Vladimir G. Ivanovic" <vgivanovic@×××××××.net>