Summary: | optimization flags and advice | ||
---|---|---|---|
Product: | [OLD] Docs-user | Reporter: | Spider (RETIRED) <spider> |
Component: | Gentoo Linux FAQ | Assignee: | Stoyan Zhekov (RETIRED) <zhware> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Spider (RETIRED)
![]() In witch document to add this? Install guide? FAQs? somewhere else? in the FAQ, preferrably directly after this section: I'm finding things to be really unstable and I'm using "-O9 -ffast-math -fomit-frame-pointer" optimizations. What gives? When you use any optimizations beyond -O3, you're really taking the risk of having broken packages. Very aggressive optimizations sometimes cause the compiler to streamline the assembly code to the point where it doesn't quite do the same thing anymore. Loc-Dog (on IRC) uses -O3 -mcpu=i686 -march=i686 -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -malign-functions=4, which is about as much as I'd want to push global optimization settings. Beyond this, it's best to use ultra-high optimizations only with specific packages where you really need that extra 2%, (eg graphics and various multimedia programs), and where you can easily test the package to ensure that it hasn't been optimized into oblivion. fixed in the CVS |