29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Standard C Implementation Definition<br />

B.1.11<br />

Expression evaluation<br />

The compiler can re-order expressions involving only associative and commutative<br />

operators of equal precedence, even in the presence of parentheses. For example, a + (b<br />

+ c) might be evaluated as (a + b) + c if a, b, and c are integer expressions.<br />

Between sequence points, t<br />

he compiler can evaluate expressions in any order, regardless of parentheses. Therefore,<br />

side effects of expressions between sequence points can occur in any order.<br />

The compiler can evaluate function arguments in any order.<br />

Any aspect of evaluation order not prescribed by the relevant standard can be varied by:<br />

• the optimization level you are compiling at<br />

• the release of the compiler you are using.<br />

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. B-7<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!