This is the mail archive of the
mailing list for the GCC project.
Re: On inlining in C++
- From: Scott Robert Ladd <coyote at coyotegulch dot com>
- To: Robert Dewar <dewar at gnat dot com>
- Cc: aph at redhat dot com, gcc at gcc dot gnu dot org
- Date: Tue, 05 Aug 2003 12:22:07 -0400
- Subject: Re: On inlining in C++
- References: <20030804173318.54B08F2D7C@nile.gnat.com>
Robert Dewar wrote:
You are assuming a model of someone who understands the possible effects
of inlining and knows what an instruction cache is and how it works. The
readership and writership of this list is hardly a representative cross-
section of "in the trenches" C++ programmers, who in my experience have
very little awarness of what is going on at the machine level.
I've spent more than a decade managing and working with C++ programmers.
In my experience, a programmer with "very little awareness" is likely to
make many significant mistakes; any ill-uses of "inline" will be masked
by other programming ignorances.
I use C++ because it implicitly trusts the programmer; that is part of
the core C++ philosophy.
Scott Robert Ladd
Coyote Gulch Productions (http://www.coyotegulch.com)
Software Invention for High-Performance Computing