Atmel CAVR-4 ユーザーズマニュアル
![Atmel](https://files.manualsbrain.com/attachments/0369829915bda09f9c2e00fb805a7753579683b5/common/fit/150/50/8d2bf08978ec3e5bc63f4343ac5e91ce8d0e40045619fa520d910d64af8f/brand_logo.png)
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.
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
option
--diag_warning
or the
#pragma
diag_warning
directive will also be treated
as errors when
--warnings_are_errors
is used.
To set the equivalent option in IAR Embedded Workbench, select
Project>Options>C/C++ Compiler>Diagnostics.
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.
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,
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)
3
Low*
6
Medium
9
High (Maximum optimization)
Table 52: Specifying size optimization (-z)