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: On inlining in C++


On Mon, 4 Aug 2003, Robert Dewar wrote:

> > Perhaps there is, but the Principle of Least Surprise favours a
> > fairly literal interpretation of "inline".
>
> I don't agree, a huge blow up in size, resulting in slower execution because
> of icache overload, can also qualify as a surprise.
>
> Indeed we find that customers are quite often surprised to find that -O3
> is slower than -O2 (as well as generating lots of code).

Which seems to prove the point that compiler heuristics aren't working well
in practice.  Hence, explicit control is necessary.


Bernd


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