Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
168
Setting command line options
AVR® IAR C/C++ Compiler
Reference Guide
SPECIFYING PARAMETERS
When a parameter is needed for an option with a short name, it can be specified either 
immediately following the option or as the next command line argument. 
For instance, an include file path of
 \usr\include
 can be specified either as:
-I\usr\include
or as:
-I \usr\include
Note:
can be used instead of
 \ 
as the directory delimiter.
Additionally, output file options can take a parameter that is a directory name. The 
output file will then receive a default name and extension.
When a parameter is needed for an option with a long name, it can be specified either 
immediately after the equal sign (=) or as the next command line argument, for example: 
--diag_suppress=Pe0001
or
--diag_suppress Pe0001
The option --
preprocess
, however, is an exception, as the filename must be preceded 
by a space. In the following example, comments are included in the preprocessor output:
--preprocess=c prog
Options that accept multiple values may be repeated, and may also have 
comma-separated values (without a space), for example:
--diag_warning=Be0001,Be0002
The current directory is specified with a period (
.
), for example:
iccavr prog -l .
A file parameter specified by 
'-'
 represents standard input or output, whichever is 
appropriate.
Note: When an option takes a parameter, the parameter cannot start with a dash (-) 
followed by another character. Instead, you can prefix the parameter with two dashes; 
the following example will create a list file called 
-r
:
iccavr prog -l ---r