On ons, 2008-08-13 at 00:02 -0400, Tres Seaver wrote: > Inlining involves repeated duplication of the same function (body) at > each call site, no? If inlining is a good idea (trading space at the > call site to avoid the overhead of a call setup), then declaring the > function extern seems silly.
Not if you consider that inlining is only done when optimization is enabled. An extern inline is the equivalent to a extern prototype without function body to inline, just as any other extern. But ideally the compilers should deal with this automatically, reducing duplicate inline functions in the link phase or earlier.. but they don't. Anyway, the problem is fixed. Regards Henrik
signature.asc
Description: This is a digitally signed message part
