Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
174
Descriptions of options
AVR® IAR C/C++ Compiler
Reference Guide
--cross_call_passes
--cross_call_passes=N
Use this option to decrease the 
RSTACK
 usage by running the cross-call optimizer 
N
 
times, where 
N
 can be 1–5. The default is to run it until no more improvements can be 
made.
For additional information, see --no_cross_call, page 189.
Note: Use this option if you have a target processor with a hardware stack or a small 
internal return stack segment, 
RSTACK
.
This option is related to the Optimizations options in the C/C++ Compiler category in 
IAR Embedded Workbench.
-D
-Dsymbol[=value]
-D symbol[=value]
Use this option to define a preprocessor symbol with the name 
symbol
 and the value 
value
. If no value is specified, 
1
 is used. 
The option 
-D
 has the same effect as a 
#define
 statement at the top of the source file:
-Dsymbol
is equivalent to:
#define symbol 1
In order to get the equivalence of:
#define FOO
specify the 
=
 sign but nothing after, for example:
-DFOO=
This option can be used one or more times on the command line. 
Example
You may want to arrange your source to produce either the test or production version of 
your program, depending on whether the symbol 
TESTVER
 was defined. To do this, you 
would use include sections such as:
#ifdef  TESTVER
...
 additional code lines for test version only
#endif
Then, you would select the version required on the command line as follows: