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

Usage<br />

The action of --interleave depends on the combination of options used:<br />

Table 2-4 Compiling with the ---interleave option<br />

Compiler option<br />

--asm --interleave<br />

Action<br />

Writes a listing to a file of the disassembly of the compiled source,<br />

interleaving the source code with the disassembly.<br />

The link step is also performed, unless the -c option is used.<br />

The disassembly is written to a text file whose name defaults to the<br />

name of the input file with the filename extension .txt<br />

-S --interleave Writes a listing to a file of the disassembly of the compiled source,<br />

interleaving the source code with the disassembly.<br />

The disassembly is written to a text file whose name defaults to the<br />

name of the input file with the filename extension .txt<br />

Restrictions<br />

• You cannot reassemble an assembly listing generated with --asm --interleave or<br />

-S --interleave.<br />

• Preprocessed source files contain #line directives. When compiling preprocessed<br />

files using --asm --interleave or -S --interleave, the compiler searches for the<br />

original files indicated by any #line directives, and uses the correct lines from<br />

those files. This ensures that compiling a preprocessed file gives exactly the same<br />

output and behavior as if the original files were compiled.<br />

If the compiler cannot find the original files, it is unable to interleave the source.<br />

Therefore, if you have preprocessed source files with #line directives, but the<br />

original unpreprocessed files are not present, you must remove all the #line<br />

directives before you compile with --interleave.<br />

See also<br />

• --asm on page 2-16<br />

• -S on page 2-114.<br />

2.1.95 -Jdir[,dir,...]<br />

This option adds the specified directory, or comma-separated list of directories, to the<br />

list of system includes.<br />

Warnings and remarks are suppressed, even if --diag_error is used.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!