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.

Language Extensions<br />

3.4.4 Dollar signs in identifiers<br />

Dollar ($) signs are permitted in identifiers.<br />

Note<br />

When compiling with the --strict option, you can use the --dollar command-line<br />

option to permit dollar signs in identifiers.<br />

Example<br />

#define DOLLAR$<br />

See also<br />

• --[no_]dollar on page 2-32<br />

• --[no_]strict on page 2-84.<br />

3.4.5 Top-level declarations<br />

A C input file can contain no top-level declarations.<br />

Errors<br />

A remark is issued if a C input file contains no top-level declarations.<br />

Note<br />

Remarks are not displayed by default. To see remark messages, use the compiler option<br />

--remarks.<br />

See also<br />

• --remarks on page 2-78.<br />

3.4.6 Benign redeclarations<br />

Benign redeclarations of typedef names are permitted. That is, a typedef name can be<br />

redeclared in the same scope as the same type.<br />

Example<br />

typedef int INT;<br />

typedef int INT; /* redeclaration */<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!