04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

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 />

Otherwise, reads and writes to volatile qualified objects occur as directly implied by the<br />

source code, in the order implied by the source code.<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 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. B-7<br />

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!