This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: parse arguments sequentially


On May 18, 2001, Housseine Rejouan - Engineering Logic Sythesis Group <hrejouan@get2chip.com> wrote:

> The evaluation order of inv(x) and foo1(y) differ from linux to solaris,
> and this is really bad for my application.

Then fix your application.  There's no sequence point between the
evaluation of arguments to a function.  So, not only the order of
their evaluation might change from one build to another, but also they
could be interleaved.

> my question is: for the same compiler (g++), can we control that order?

I suppose you'd have to modify the compiler and, as a result, you
might end up generating much less efficient code.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]