Re: Environment to build a squid helper

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Wed, 13 Aug 2008 06:12:33 +0200

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

Received on Wed Aug 13 2008 - 04:12:39 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 13 2008 - 12:00:05 MDT