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.

<strong>Compiler</strong> Command-line Options<br />

Default<br />

If you do not specify a --depend_format option, then the format of output dependency<br />

files depends on your choice of operating system:<br />

Windows<br />

UNIX<br />

On Windows systems, the default is to use either Windows-style<br />

paths or UNIX-style paths, whichever is given.<br />

On UNIX systems, the default is --depend_format=unix.<br />

Example<br />

On a Windows system, compiling a file main.c containing the line:<br />

#include "..\include\header files\common.h"<br />

using the options --depend=depend.txt --depend_format=unix_escaped produces a<br />

dependency file depend.txt containing the entries:<br />

main.axf: main.c<br />

main.axf: ../include/header\ files/common.h<br />

See also<br />

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

• --md on page 2-60.<br />

2.1.29 --[no_]depend_system_headers<br />

This option enables or disables the output of system include dependency lines when<br />

generating make file dependency information using either the -M option or the --md<br />

option.<br />

Default<br />

The default is --depend_system_headers.<br />

Example<br />

/* hello.c */<br />

#include <br />

int main(void)<br />

{<br />

printf("Hello, world!\n");<br />

return 0;<br />

}<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!