Atmel CAVR-4 Manuale Utente
CAVR-4
194
Descriptions of options
AVR® IAR C/C++ Compiler
Reference Guide
To set the equivalent option in IAR Embedded Workbench, select
Project>Options>C/C++ Compiler>Preprocessor.
Project>Options>C/C++ Compiler>Preprocessor.
--public_equ
--public_equ symbol[=value]
This option is equivalent to defining a label in assembler language by using the
EQU
directive and exporting it using the
PUBLIC
directive.
-r, --debug
-r
--debug
Use the
-r
or the
--debug
option to make the compiler include information required
by the IAR C-SPY Debugger and other symbolic debuggers in the object modules.
Note: Including debug information will make the object files larger than otherwise.
To set the equivalent option in IAR Embedded Workbench, select
Project>Options>C/C++ Compiler>Output.
Project>Options>C/C++ Compiler>Output.
--remarks
--remarks
The least severe diagnostic messages are called remarks (see Severity levels, page 279).
A remark indicates a source code construct that may cause strange behavior in the
generated code.
A remark indicates a source code construct that may cause strange behavior in the
generated code.
By default, the compiler does not generate remarks. Use this option to make the
compiler generate remarks.
compiler generate remarks.
To set the equivalent option in IAR Embedded Workbench, select
Project>Options>C/C++ Compiler>Diagnostics.
Project>Options>C/C++ Compiler>Diagnostics.
--require_prototypes
--require_prototypes
This option forces the compiler to verify that all functions have proper prototypes. Using
this option means that code containing any of the following will generate an error:
this option means that code containing any of the following will generate an error:
●
A function call of a function with no declaration, or with a Kernighan & Ritchie
C declaration
C declaration
●
A function definition of a public function with no previous prototype declaration
●
An indirect function call through a function pointer with a type that does not include
a prototype.
a prototype.
To set the equivalent option in IAR Embedded Workbench, select
Project>Options>C/C++ Compiler>Language.
Project>Options>C/C++ Compiler>Language.