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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Language Extensions<br />

Restrictions<br />

The declaration of intent is effectively a promise to the compiler that, if broken, results<br />

in undefined behavior.<br />

Example<br />

void copy_array(int n, int *restrict a, int *restrict b)<br />

{<br />

while (n-- > 0)<br />

*a++ = *b++;<br />

}<br />

See also<br />

• --restrict, --no_restrict on page 2-112<br />

• New features of C99 on page 5-45 in the Compiler User Guide.<br />

3.3.4 Hex floats<br />

C90 and C++ support floating-point numbers that can be written in hexadecimal format.<br />

Example<br />

float hex_floats(void)<br />

{<br />

return 0x1.fp3; // 1.55e1<br />

}<br />

See also<br />

• New features of C99 on page 5-45 in the Compiler User Guide.<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 3-9<br />

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!