Gentoo Archives: gentoo-amd64

From: Ben de Groot <yngwin@g.o>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Problems configuring gentoo
Date: Sat, 04 Oct 2008 11:19:03
Message-Id: 48E75119.5080206@gentoo.org
In Reply to: Re: [gentoo-amd64] Problems configuring gentoo by Beso
1 Beso wrote:
2 >> CFLAGS="-march=nocona -O2 -pipe"
3 >
4 > first of all: nocona breaks your build. nocona isn't an amd processor
5 > but an emt64 (intel). for your processor you need to use march=k8.
6 > also, i'd use -Os instead of -O2 since it has some speed and size
7 > optimizations and it's stable.
8
9 -Os optimizes for size, while -O2 optimizes for speed. There is no need
10 at all to use -Os on a modern desktop machine, and it will run
11 comparatively slower than -O2 optimized code, which is probably not what
12 you want.
13
14 >> CHOST="x86_64-pc-linux-gnu"
15 >> USE="3dnow mmx sse sse2 threads threadpool -multilib"
16 >
17 > sse isn't supported on athlons, so remove it
18
19 As we're talking about athlon64 here, it definitely is. The Athlon64 X2
20 supports mmx, mmxext, 3dnow, 3dnowext, sse and sse2. And the AM2 models
21 also support sse3, but not ssse3 or sse4.
22
23 And as for -march, -march=athlon64 equals -march=k8 (see the gcc
24 manpage). So you can choose either one and get the exact same optimizations.
25
26 I hope this clears a few things up.
27
28 Cheers,
29 --
30 Ben de Groot
31 Gentoo Linux developer (lxde, media, desktop-misc)
32 Gentoo Linux Release Engineering PR liaison
33 __________________________________________________
34
35 yngwin@g.o
36 http://ben.liveforge.org/
37 irc://chat.freenode.net/#gentoo-media
38 irc://irc.oftc.net/#lxde
39 __________________________________________________

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-amd64] Problems configuring gentoo Richard Freeman <rich0@g.o>