On inlining in C++

Scott Robert Ladd coyote@coyotegulch.com
Tue Aug 5 16:58:00 GMT 2003


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



More information about the Gcc mailing list