A recent talk with a friend made┬áme realize that the following declspec is not very well known. It’s used to avoid inlining a function (the opposite of what we’re usually looking for, which probably explains why it might have remained obscure for a lot of us).

With VC++:


With gcc:

__attribute__ ((noinline))

It’s very useful for example with templated arrays, to make sure things like the resize functions are never inlined.

3 Responses to “noinline”

  1. David Black Says:

    This is of course assuming you know better than the compiler… :-)

  2. admin Says:

    Well on some platforms that’s really not difficult…. as you know. Interested readers can check this recent post by Charles Bloom:

  3. Hassan Says:

    yop Zappy!
    Pris en flag d’update de ton profil stniccc! Il rest 5 ans!!! cialis