[Numpy-discussion] Generalized ufuncs?
Charles R Harris
Fri Aug 15 02:02:04 CDT 2008
On Fri, Aug 15, 2008 at 12:45 AM, Andrew Dalke <email@example.com>wrote:
> On Aug 15, 2008, at 8:36 AM, Charles R Harris wrote:
> > The inline keyword also tends to be gcc/icc specific, although it
> > is part of the C99 standard.
> For reference, a page on using inline and doing so portably:
Doesn't do the trick for compilers that aren't C99 compliant. And there are
many of them. For gcc there are other options.
-finline-functionsIntegrate all simple functions into their callers. The
compiler heuristically decides which functions are simple enough to be worth
integrating in this way.
If all calls to a given function are integrated, and the function is
declared static, then the function is normally not output as assembler code
in its own right.
Enabled at level -O3.
-finline-functions-called-onceConsider all static functions called once for
inlining into their caller even if they are not marked inline. If a call to
a given function is integrated, then the function is not output as assembler
code in its own right.
Enabled if -funit-at-a-time is enabled.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion