On Fri, Aug 15, 2008 at 12:45 AM, Andrew Dalke <[EMAIL PROTECTED]>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: > > http://www.greenend.org.uk/rjk/2003/03/inline.html 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. Chuck
_______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
