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.

Compiler Command-line Options<br />

See also<br />

• --pch on page 2-101<br />

• --pch_dir=dir on page 2-101<br />

• --pch_messages, --no_pch_messages on page 2-102<br />

• --pch_verbose, --no_pch_verbose on page 2-102<br />

• --use_pch=filename on page 2-129<br />

• #pragma hdrstop on page 4-64<br />

• #pragma no_pch on page 4-67<br />

• Precompiled header files on page 2-17 in the Compiler User Guide.<br />

2.1.35 -Dname[(parm-list)][=def]<br />

This option defines the macro name.<br />

Syntax<br />

-Dname[(parm-list)][=def]<br />

Where:<br />

name<br />

parm-list<br />

Is the name of the macro to be defined.<br />

Is an optional list of comma-separated macro parameters. By appending<br />

a macro parameter list to the macro name, you can define function-style<br />

macros.<br />

The parameter list must be enclosed in parentheses. When specifying<br />

multiple parameters, do not include spaces between commas and<br />

parameter names in the list.<br />

Note<br />

Parentheses might require escaping on UNIX systems.<br />

=def<br />

Is an optional macro definition.<br />

If =def is omitted, the compiler defines name as the value 1.<br />

To include characters recognized as tokens on the command line, enclose<br />

the macro definition in double quotes.<br />

Usage<br />

Specifying -Dname has the same effect as placing the text #define name at the head of<br />

each source file.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!