Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7279) Macro optimizations
Home

[Freeciv-Dev] Re: (PR#7279) Macro optimizations

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#7279) Macro optimizations
From: "Arnstein Lindgard" <a-l@xxxxxxx>
Date: Thu, 22 Jan 2004 17:04:14 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7279 >

On Wed, 21 Jan 2004 17:58:31 -0800 rwetmore@xxxxxxxxxxxx wrote:

> The key thing is that what looks to be the same function with identical
> args may or may not produce the same value when inline hints are used
> since it is indeterminate whether one actually does an inline or does an
> out-of-line call and the two may produce different results.

http://wwwold.dkuug.dk/JTC1/SC22/WG14/www/standards   (SC22 N2794)

This ISO C99 standard draft paper states that the order is undefined
with normal function calls.

       6.5.2.2  Function calls

       [#10] The order of evaluation of  the  function  designator,
       the  actual  arguments, and subexpressions within the actual
       arguments is unspecified, but  there  is  a  sequence  point
       before the actual call.

       [#12] EXAMPLE  In the function call

               (*pf[f1()]) (f2(), f3() + f4())

       the functions f1, f2, f3, and f4 may be called in any order.
       All side effects have to be completed  before  the  function
       pointed to by pf[f1()] is called.


> There are all sorts of issues like this with inlining, 

What are these issues then?


Arnstein




[Prev in Thread] Current Thread [Next in Thread]