On Mon, Sep 14, 2009 at 11:37 PM, Alec Joseph Rivera <[email protected]> wrote: > Currently, we use GCC with -O3 and target i686 as the LCD for our > compilation.
Rule of thumb, never ever use -O3 optimization on gcc-4.x.x. [0] -O3: This is the highest level of optimization possible, and also the riskiest. It will take a longer time to compile your code with this option, and in fact it should not be used system-wide with gcc 4.x. The behavior of gcc has changed significantly since version 3.x. In 3.x, -O3 has been shown to lead to marginally faster execution times over -O2, but this is no longer the case with gcc 4.x. Compiling all your packages with -O3 will result in larger binaries that require more memory, and will significantly increase the odds of compilation failure or unexpected program behavior (including errors). The downsides outweigh the benefits; remember the principle of diminishing returns. Using -O3 is not recommended for gcc 4.x. [0] http://www.gentoo.org/doc/en/gcc-optimization.xml -- Jimmy B. Lim j i m m y b l i m @ g m a i l . c o m _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

