Specifications

CAVR-4
200
Descriptions of options
AVR® IAR C/C++ Compiler
Reference Guide
--warnings_are_errors --warnings_are_errors
Use this option to make the compiler treat all warnings as errors. If the compiler
encounters an error, no object code is generated. Warnings that have been changed into
remarks are not treated as errors.
Note: Any diagnostic messages that have been reclassified as warnings by the compiler
option
--diag_warning or the #pragma diag_warning directive will also be treated
as errors when
--warnings_are_errors is used.
For additional information, see --diag_warning, page 177 and #pragma diag_warning,
page 219.
To set the equivalent option in IAR Embedded Workbench, select
Project>Options>C/C++ Compiler>Diagnostics.
-y -y
Use this option to override the default placement of constants and literals.
Without this option, constants and literals are placed in an external
const segment,
segmentbasename_C. With this option, constants and literals will instead be placed in
the initialized
segmentbasename_I data segments that are copied from the
segmentbasename_ID segments by the system startup code.
Note that
-y is implicit in the tiny memory model.
This option can be combined with the option
--initializers_in_flash; see
--initializers_in_flash, page 184 for additional information.
This option is related to the Code options in the C/C++ Compiler category in IAR
Embedded Workbench.
-z -z[2|3|6|9]
Use this option to make the compiler optimize the code for minimum size. If no
optimization option is specified,
-z3 is used by default.
The following table shows how the optimization levels are mapped:
Option modifier Optimization level
2 None* (Best debug support)
3Low*
6Medium
9 High (Maximum optimization)
Table 52: Specifying size optimization (-z)