|
From: Thomas F. B. <tbu...@gm...> - 2010-06-24 09:17:15
|
2010/6/24 Christophe Rhodes <cs...@ca...>: > If FUN were an inline function, or a local function, rather than an > external function (however arbitrarily tightly type-declared), this > pointer coercion (heap allocation) wouldn't need to happen. What might not be obvious from Christophe's reply is the most common way (in my experience) for FUN to be a local function. If SAP-TEST1 is inlined and FUN is a local function for the call site. The trick is to put all your mapping functions (which is what I assume this was derived from) in one file, all declaimed inline. Their compilation will generate lots of notes, but that's okay. What you care about is the call sites, and making sure you get the local-function optimizations you need there. |