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

The compiler executes only the preprocessor step of the compilation. By default, output<br />

is on the standard output stream.<br />

If you specify multiple source files, a single dependency file is created.<br />

If you specify the -o filename option, the dependency lines generated on standard<br />

output make reference to filename.o, and not to source.o. However, no object file is<br />

produced with the combination of -M -o filename.<br />

Use the --md option to generate dependency lines and object files for each source file.<br />

Example<br />

You can redirect output to a file by using standard UNIX and MS-DOS notation, for<br />

example:<br />

armcc -M source.c > Makefile<br />

See also<br />

• -C on page 2-22<br />

• --depend=filename on page 2-40<br />

• --depend_system_headers, --no_depend_system_headers on page 2-42<br />

• -E on page 2-52<br />

• --md<br />

• -o filename on page 2-95.<br />

2.1.110 --md<br />

This option instructs the compiler to compile the source and write makefile dependency<br />

lines to a file.<br />

The output file is suitable for use by a make utility.<br />

The compiler names the file filename.d, where filename is the name of the source file.<br />

If you specify multiple source files, a dependency file is created for each source file.<br />

See also<br />

• --depend=filename on page 2-40<br />

• --depend_format=string on page 2-41<br />

• --depend_system_headers, --no_depend_system_headers on page 2-42<br />

• -M on page 2-88<br />

• -o filename on page 2-95.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!