This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: On inlining in C++
- From: dewar at gnat dot com (Robert Dewar)
- To: dewar at gnat dot com, gdr at integrable-solutions dot net
- Cc: aph at redhat dot com, gcc at gcc dot gnu dot org
- Date: Mon, 4 Aug 2003 13:35:19 -0400 (EDT)
- Subject: Re: On inlining in C++
> Again, this is an issue about C++ meaning of inline. Not Ada's.
That's just plain wrong. mY comment:
> | Well I prefer to rely on my experience (which is that I have seen a lot
> | of cases in which users are surprised to find that inlining slows things
> | down), than your belief :-)
This comment is about inlining in general. It is not about Ada or about C++.
A lot of programmers have a pretty naive view of machine language, if they
have any view at all. For many programmers, the view of inlining is that
it must save time because it saves the time of the call and return. This
is of course entirely naive wrt super scalar machines with small icaches.
So you are misinterpreting the scope of my comment completely.