Re: Compiling C++ modules



Valdis.Kletnieks@xxxxxx 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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Compiling C++ modules
    ... Except for the punishment the i-cache takes. ... There's reasons why we ... fight over "to inline or not to inline".... ...
    (Linux-Kernel)
  • Re: To Hal: Circling, ring movement, etc.
    ... left defensive dodge." ... advantage to train and fight that way. ...  Of course you have your reasons to do certain ... to time me and make accurate predictions. ...
    (rec.martial-arts)
  • Re: Update on previous post
    ... It is for the very reasons that you state in your posts, ... continue to fight for your disability. ... lung doctor just made the decision for me. ...
    (alt.support.arthritis)
  • Re: Top posting
    ... Many of the reasons given for one posting style vs. another though are ... As long as I can figure out the flow (be it top, bottom or inline ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Update on previous post
    ... they turned down my brother-in-law after his open heart surgery because ... It is for the very reasons that you state in your posts, ... continue to fight for your disability. ... lung doctor just made the decision for me. ...
    (alt.support.arthritis)