This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compilation-time suggestion


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]