This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compilation-time suggestion
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 19 Jan 2004 18:51:58 +0100
- Subject: Re: Compilation-time suggestion
- Organization: Integrable Solutions
- References: <Pine.LNX.4.44.0401190934380.23549-100000@www.eyesopen.com>
Roger Sayle <roger@eyesopen.com> writes:
| I have a proposal/suggestion for perhaps improving GCC compilation
| time: Perhaps we could make more use of __builtin_expect inside the
| compiler itself.
This has been suggested in the past
http://gcc.gnu.org/ml/libstdc++/2002-11/msg00151.html
and RTH made this comment:
http://gcc.gnu.org/ml/libstdc++/2002-11/msg00171.html
In fact, from a recent thread on libstdc++ list, I've come to agree
with RTH comment.
I believe you would benefit much more from *algorithmic* and
*data-structure* improvements than from __builtin_expect which would
just add one more level of obfuscation to the already difficult to
follow source base. Let's go that way first.
-- Gaby