Gentoo Archives: gentoo-user

From: "Hemmann
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] CFLAGS, is this better than what I have?
Date: Sun, 04 Dec 2005 10:56:57
Message-Id: 200512041151.43656.volker.armin.hemmann@tu-clausthal.de
In Reply to: [gentoo-user] CFLAGS, is this better than what I have? by Dale
1 On Sunday 04 December 2005 09:35, Dale wrote:
2 > Hi,
3 >
4 > I have been up and running a while and am running stable but this is
5 > Gentoo. ;) I found a script that tells you what your CFLAGS are
6 > suposed to be and it is different from what I am using. This is what I
7 >
8 > am using now, from make.conf of course:
9 > >CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
10 >
11 > This is what the script said:
12 > >-march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow
13 >
14 > I assume I would have to add the-O3 to that though.
15 >
16 > I have a AMD XP 2500+ and 1GB of ram. I like it to run fast even if it
17 > takes longer to compile. I think that is where the -O3 comes in but be
18 > gentle if I am wrong. For those who may read this and not tell the
19 > difference, that is a minus sign, the letter O and the number three.
20 >
21
22 O3 makes binaries much, much bigger. Bigger binaries need more cache&load
23 time. So bigger binaries are slower a lot of time.
24 -fomit-frame-pointer is fine, fmpgmath=sse may or may not make your apps
25 slower or faster. msse, mmmx, m3dnow are (mostly) harmless.
26 --
27 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] CFLAGS, is this better than what I have? Dale <dalek@××××××××××.net>