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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Via File Syntax<br />

A.2 Syntax<br />

Via files must conform to the following syntax rules:<br />

• A via file is a text file containing a sequence of words. Each word in the text file<br />

is converted into an argument string and passed to the tool.<br />

• Words are separated by whitespace, or the end of a line, except in delimited<br />

strings. For example:<br />

--c90 --strict (two words)<br />

--c90--strict (one word)<br />

• The end of a line is treated as whitespace. For example:<br />

--c90<br />

--strict<br />

is equivalent to:<br />

--c90 --strict<br />

• Strings enclosed in quotation marks ("), or apostrophes (') are treated as a single<br />

word. Within a quoted word, an apostrophe is treated as an ordinary character.<br />

Within an apostrophe delimited word, a quotation mark is treated as an ordinary<br />

character.<br />

Quotation marks are used to delimit filenames or path names that contain spaces.<br />

For example:<br />

-I C:\My Project\includes (three words) -I "C:\My Project\includes" (two<br />

words)<br />

Apostrophes can be used to delimit words that contain quotes. For example:<br />

-DNAME='"<strong>RealView</strong> <strong>Compilation</strong> <strong>Tools</strong>"' (one word)<br />

• Characters enclosed in parentheses are treated as a single word. For example:<br />

--option(x, y, z) (one word)<br />

--option (x, y, z) (two words)<br />

• Within quoted or apostrophe delimited strings, you can use a backslash (\)<br />

character to escape the quote, apostrophe, and backslash characters.<br />

• A word that occurs immediately next to a delimited word is treated as a single<br />

word. For example:<br />

-I"C:\Project\includes"<br />

is treated as the single word:<br />

-IC:\Project\includes<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!