On inlining in C++

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Aug 5 13:25:00 GMT 2003


Richard Guenther <rguenth@tat.physik.uni-tuebingen.de> writes:

| The point is, all these "people will optimize" suggestions go against
| portability to different compilers.

It is going to be non portable only if compiler back ends decide they
know better and don't trust the programmer preference.  Inline in C++
precisely to cut down the non-portability.  Inline in C++ does not
mean "hey back-end, optimize this as you want".

-- Gaby



More information about the Gcc mailing list