1 |
I use the flags from the Safe_Cflags article on the wiki ( |
2 |
http://gentoo-wiki.com/Safe_Cflag ). So far they haven't caused me any |
3 |
headaches. |
4 |
|
5 |
CHOST="alpha-unknown-linux-gnu" |
6 |
CFLAGS="-mieee -O2 -mcpu=ev56 -pipe" |
7 |
CXXFLAGS="${CFLAGS}" |
8 |
|
9 |
> What level of optimizations flags are recommended? |
10 |
On all of the Gentoo systems I've set up I've used -O2. I use it over |
11 |
-O3 for a number of reasons. One, I cannot tell the difference in |
12 |
terms of speed between something that is compiled with -O2 vs. -O3. |
13 |
Two, emerge times are longer if you use -O3. Three, sometimes using |
14 |
too many optimizations screws things up. (see |
15 |
http://bugs.gentoo.org/74072 ). |
16 |
|
17 |
-Thomas |
18 |
|
19 |
-- |
20 |
gentoo-alpha@g.o mailing list |