Anfang der weitergeleiteten E-Mail:

Von: Mike Mattie <[EMAIL PROTECTED]>
Datum: 7. Januar 2008 13:46:35 MEZ
An: Peter Dyballa
Betreff: bogus optimization -03 in Emacs.app compile script
X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i686-pc-linux-gnu)

Hello,

could you pass this on to the Emacs.app folks ?

I wanted to double-check that my assumptions were right, and sure enough
-O3 is a terrible optimization flag.

Disregarding the general guidelines of the gcc developers is occasionally warranted, but only people who have practically memorized the intel/ ppc
manuals should be playing with this kind of aggressive optimization.

I started out programming in assembly, but I stopped reading the manuals
after the pentium. Frankly it's for domain experts these days. If you
haven't taken a degree in compiler design & implementation you are likely
going to blow your own foot off, when the only benefit is a borderline
1-2% gain *if you are lucky*.


from:   http://www.gentoo.org/doc/en/gcc-optimization.xml

-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.


Attachment: PGP.sig
Description: Signierter Teil der Nachricht

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Emacs-app-dev- mailing list
Emacs-app-dev-@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-

Reply via email to