Atmel CAVR-4 사용자 설명서
CAVR-4
188
Descriptions of options
AVR® IAR C/C++ Compiler
Reference Guide
If the compiler is unable to check for a rule, specifying the option for that rule has no
effect. For instance, MISRA C rule 15 is a documentation issue, and the rule is not
checked by the compiler. As a consequence, specifying
effect. For instance, MISRA C rule 15 is a documentation issue, and the rule is not
checked by the compiler. As a consequence, specifying
--misrac=15
has no effect.
To set the equivalent option in IAR Embedded Workbench, select
Project>Options>General Options>MISRA C or Project>Options>C/C++
Compiler>MISRA C.
Project>Options>General Options>MISRA C or Project>Options>C/C++
Compiler>MISRA C.
--misrac_verbose
--misrac_verbose
Use this option to generate a MISRA C log during compilation and linking. This is a list
of the rules that are enabled—but not necessarily checked—and a list of rules that are
actually checked.
of the rules that are enabled—but not necessarily checked—and a list of rules that are
actually checked.
If this option is enabled, the compiler displays a text at sign-on that shows both enabled
and checked MISRA C rules.
and checked MISRA C rules.
To set the equivalent option in IAR Embedded Workbench, select
Project>Options>General Options>MISRA C.
Project>Options>General Options>MISRA C.
--module_name
--module_name=name
Normally, the internal name of the object module is the name of the source file, without
a directory name or extension. Use this option to specify an object module name.
a directory name or extension. Use this option to specify an object module name.
To set the object module name explicitly, use the option
--module_name=name
, for
example:
iccavr prog --module_name=main
This option is useful when several modules have the same filename, because the
resulting duplicate module name would normally cause a linker error; for example,
when the source file is a temporary file generated by a preprocessor.
resulting duplicate module name would normally cause a linker error; for example,
when the source file is a temporary file generated by a preprocessor.
--misrac=k-n
Enables checking for all MISRA C rules with numbers from
k
to n
--misrac=k,m,r-t
Enables checking for MISRA C rules with numbers k, m, and
from r to t
--misrac=all
Enables checking for all MISRA C rules
--misrac=required
Enables checking for all MISRA C rules categorized as
required
Command line option
Description
Table 48: Enabling MISRA C rules (--misrac) (Continued)