Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
182
Descriptions of options
AVR® IAR C/C++ Compiler
Reference Guide
-f
-f filename
Reads command line options from the named file, with the default extension 
xcl
.
By default, the compiler accepts command parameters only from the command line 
itself and the 
QCCAVR
 environment variable. To make long command lines more 
manageable, and to avoid any operating system command line length limit, you can use 
the 
-f
 option to specify a command file, from which the compiler reads command line 
items as if they had been entered at the position of the option.
In the command file, you format the items exactly as if they were on the command line 
itself, except that you may use multiple lines, because the newline character acts just as 
a space or tab character.
Both C and C++ style comments are allowed in the file. Double quotes behave as in the 
Microsoft Windows command line environment.
Example
For example, you could replace the command line:
iccavr prog -r "-DUsername=John Smith" -DUserid=463760
with
iccavr prog -r -f userinfo 
if the file 
userinfo.xcl
 contains:
"-DUsername=John Smith"
-DUserid=463760
--force_switch_type
--force_switch_type[0|1|2]
Sets the switch type:
Option modifier
Switch type
0
Library call with switch table
1
Inline code with switch table
2
Inline compare/jump logic
Table 45: Specifying switch type