httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: What evil lurks beneath macros... (an AIX xlc optimizer bug)
Date Fri, 16 Aug 2002 19:20:36 GMT
Ian Holsman wrote:
> 
> Bill Stoddard wrote:
> > While trying to create a simple testcase demonstrating a bug in the xlc
> > compiler, I did a little experiment.  Here is a code snip from core.c:
> > 
> 
> I'm just wondering if there is any kind of measureable performance 
> benefit in keeping these as a macro vs putting them in a  function 
> (possibly inline if the compiler can support it).

certainly inline would be preferred over "true" function calls, as
far as performance is concerned, but using macro-sub means that you
don't have to worry about how/if the compiler/platform handles functions
at all. 
-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Mime
View raw message