This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: parse arguments sequentially
- To: hrejouan at get2chip dot com
- Subject: Re: parse arguments sequentially
- From: pkurpis at keck dot hawaii dot edu (Peter Kurpis)
- Date: Fri, 18 May 2001 09:13:14 -1000 (HST)
- Cc: pkurpis at keck dot hawaii dot edu, gcc-help at gcc dot gnu dot org
> I know one of my colleague already submited this problem.
> Let remind you the problem.
> asume that you have
>
> foo(foo(foo(inv(x), foo1(y))))
>
> I am using the same compiler g++ on both linux and solaris,
> The evaluation order of inv(x) and foo1(y) differ from linux to solaris,
> and this is really bad for my application.
>
> I need the evaluation order tobe the same for both architecture.
> my question is: for the same compiler (g++), can we control that order?
For *all* compilers,
i1=inv(x), i2=foo1(y), foo(foo(foo(i1,i2)));
This is an issue regarding the C language, not any particular compiler.
This question's already been answered by several people. I even sent
your colleague a personal email yesterday.