Datasheet
Via File Syntax
A-2 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
A.1 Overview of via files
Via files are plain text files that contain command-line arguments and options to ARM
development tools. You can use via files with most of the ARM command-line tools,
including:
• the compilers
• the assembler
• the linker
• the ARM librarian.
You can specify a via file either from the command line using the
-via
tool option, or
within the CodeWarrior IDE. See the documentation for the individual tool for more
information.
In general, you can use a via file to specify any command-line option to a tool, including
-via
. This means that you can call multiple nested via files from within a via file.
A.1.1 Via file evaluation
When a tool that supports via files is invoked it:
1. Scans for arguments that cause all other arguments to be ignored, such as
-help
and
-vsn
.
If such an argument is found, via files are not processed.
2. Replaces the first specified
-via via file
argument with the sequence of
argument words extracted from the via file, including recursively processing any
nested
-via
commands in the via file.
3. Processes any subsequent
-via via file
arguments in the same way, in the order
they are presented.
That is, via files are processed in the order you specify them, and each via file is
processed completely, including processing nested via files, before processing the next
via file.