Gentoo Archives: gentoo-performance

From: Ravi Pinjala <ravi@××××××××.net>
To: gentoo-performance@l.g.o
Subject: Re: [gentoo-performance] Advice for CFLAGS
Date: Fri, 08 Jun 2007 16:16:07
Message-Id: 46698020.4030803@p-static.net
In Reply to: Re: [gentoo-performance] Advice for CFLAGS by Mike Spitzer
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Mike Spitzer wrote:
5 > On Fri, Jun 08, 2007 at 11:26:54AM +0200, Florian Philipp wrote:
6 >> In other words, there is no clear answer but my chances are quiet bad.
7 >>
8 >> I think I'll try around a bit. I'll prepare three images on my desktop, one
9 >> Os, one O2 and one O3.
10 >>
11 >> Then I'll post my experience...
12 >
13 > Just from personal experience: I once compiled everything using O3 and
14 > couldn't tell any appreciable difference in speed on most applications.
15 > It also seemed to cause some applications to behave oddly or crash at
16 > weird times. Booting off of a boot cd and recompiling the whole system
17 > with O2 fixed all of the problems.
18 >
19 > That was with a PIII, though. I understand many apps now that have
20 > trouble with O3 are force to O2 with their ebuild, so your experience
21 > may end up being a lot different. It hasn't been worth it for me to try
22 > it again.
23
24 I don't think it's just P3; I've heard of -O3 causing instability,
25 crashes, or whatnot on other archs too. The best thing is probably to
26 use -O2 in general, and use higher optimizations for specific
27 applications that you want to tune.
28
29 - --Ravi
30 -----BEGIN PGP SIGNATURE-----
31 Version: GnuPG v2.0.4 (GNU/Linux)
32 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
33
34 iD8DBQFGaYAgsDgfoknqAqMRAi6cAJ9GeQB9b/teXJfLryaphs7oMcD86gCg2CPF
35 DDuJ8i09alnSxao84lLwcik=
36 =vYOn
37 -----END PGP SIGNATURE-----
38 --
39 gentoo-performance@g.o mailing list