On inlining in C++

Robert Dewar dewar@gnat.com
Mon Aug 4 16:50:00 GMT 2003


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



More information about the Gcc mailing list