This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A patch for linux 2.1.127
- To: "Peter T. Breuer" <ptb at it dot uc3m dot es>
- Subject: Re: A patch for linux 2.1.127
- From: Hans Lermen <lermen at elserv dot ffm dot fgan dot de>
- Date: Tue, 10 Nov 1998 10:01:23 +0100 (MET)
- cc: Linus Torvalds <torvalds at transmeta dot com>, rth at cygnus dot com, egcs at cygnus dot com, linux-kernel at vger dot rutgers dot edu
On Mon, 9 Nov 1998, Peter T. Breuer wrote:
> ... All
> studies show that hand-optimizing code is a waste of effort 99.99% of
> the time, not least because it's unmaintainable.
Smells a bit like an excuse for lazyness. For sure you have cases where
the programmer 'knows it better' than the compiler and for sure such
cases happen during kernel programming. If you can't tell the compiler
that you are the boss, you get lost.
And a final point: If you know the kernel was written/tested/proven with
-O2 and the Makefiles explicitely set -O2, then using -O6 and complaining
its not running is just ignoring the fact that the 'author' knows it
better.
Hans
<lermen@fgan.de>