Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
Part 2. Compiler reference
Compiler options
169
SPECIFYING ENVIRONMENT VARIABLES
Compiler options can also be specified in the 
QCCAVR
 environment variable. The 
compiler automatically appends the value of this variable to every command line, so it 
provides a convenient method of specifying options that are required for every 
compilation. 
The following environment variables can be used with the AVR IAR C/C++ Compiler:
ERROR RETURN CODES
The AVR IAR C/C++ Compiler returns status information to the operating system 
which can be tested in a batch file. 
The following command line error codes are supported:
Options summary
The following table summarizes the compiler command line options:
Environment variable
Description
C_INCLUDE
Specifies directories to search for include files; for example: 
C_INCLUDE=c:\program files\iar 
systems\embedded workbench 
4.n\avr\inc;c:\headers
QCCAVR 
Specifies command line options; for example: QCCAVR=-lA 
asm.lst -z9
Table 41: Environment variables
Code
Description
0
Compilation successful, but there may have been warnings.
1
There were warnings, provided that the option 
--warnings_affect_exit_code
 was used.
2
There were non-fatal errors or fatal compilation errors making the compiler abort.
3
There were fatal errors.
Table 42: Error return codes
Command line option
Description
--char_is_signed
Treats char as signed
--cpu=cpu
Specifies a processor variant
--cross_call_passes=N
Cross-call optimization
Table 43: Compiler options summary