Re: Compiling C++ modules

Avi Kivity
2006-04-25T21:15:52Z

Valdis.Kletnieks@vt.edu wrote:
>
> On Tue, 25 Apr 2006 23:26:17 +0300, Avi Kivity said:
>
> > auto_ptr<>'s are fully inlined so their impact is nil.
>
> Except for the punishment the i-cache takes. There's reasons why we
> fight over "to inline or not to inline"....
>
Not in this case. The constructor is an assignment. The destructor is an
if () followed by a delete. In this case, the if () is optimized away so
you are left with less generated code than the C case, for the
non-exceptional path.

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.