This is the mail archive of the gcc@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: /internet


Hi,

Joe Buck:
> That is, for
> 
> 	y = a * b * c * d;
> 
> the compiler could do the multiplications in any order, but for

No it cannot. C specifies whether operations are left- or
right-associative, meaning it's well-defined which is executed first.
Think "-" vs. "=". ;-)

-- 
Matthias Urlichs  |  noris network GmbH   |   smurf@noris.de  |  ICQ: 20193661


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