Re: optimization flags
Thomas Cort <[email protected]> Wed, 14 Dec 2005 11:17:18 -0500
| Newsgroups | gmane.linux.gentoo.alpha |
|---|---|
| Message-ID | <[email protected]> |
I use the flags from the Safe_Cflags article on the wiki (
http://gentoo-wiki.com/Safe_Cflag ). So far they haven't caused me any
headaches.
CHOST="alpha-unknown-linux-gnu"
CFLAGS="-mieee -O2 -mcpu=ev56 -pipe"
CXXFLAGS="${CFLAGS}"
> What level of optimizations flags are recommended?
On all of the Gentoo systems I've set up I've used -O2. I use it over
-O3 for a number of reasons. One, I cannot tell the difference in
terms of speed between something that is compiled with -O2 vs. -O3.
Two, emerge times are longer if you use -O3. Three, sometimes using
too many optimizations screws things up. (see
http://bugs.gentoo.org/74072 ).
-Thomas
--
[email protected] mailing list