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.

Compiler Command-line Options<br />

Example<br />

The following example creates an object file called test.obj, instead of test.o:<br />

armcc --default_extension=obj -c test.c<br />

Note<br />

The -o filename option overrides this. For example, the following command results in<br />

an object file named test.o:<br />

armcc --default_extension=obj -o test.o -c test.c<br />

2.1.41 --dep_name, --no_dep_name<br />

This option enables or disables dependent name processing in C++.<br />

The C++ standard states that lookup of names in templates occurs:<br />

• at the time the template is parsed, if the name is non dependent<br />

• at the time the template is parsed, or at the time the template is instantiated, if the<br />

name is dependent.<br />

When the option --no_dep_name is selected, the lookup of dependent names in templates<br />

can occur only at the time the template is instantiated. That is, the lookup of dependent<br />

names at the time the template is parsed is disabled.<br />

Note<br />

The option --no_dep_name is provided only as a migration aid for legacy source code that<br />

does not conform to the C++ standard. Its use is not recommended.<br />

Mode<br />

This option is effective only if the source language is C++.<br />

Default<br />

The default is --dep_name.<br />

Restrictions<br />

The option --dep_name cannot be combined with the option --no_parse_templates,<br />

because parsing is done by default when dependent name processing is enabled.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!