Atmel CAVR-4 Manual De Usuario
CAVR-4
12
Special support for embedded systems
AVR® IAR C/C++ Compiler
Reference Guide
Choosing a runtime library from the command line
Use the following command line options to specify the library and the dependency files:
For a list of all prebuilt library object files for the IAR DLIB Library, see Table 15,
Prebuilt libraries, page 57. The table also shows how the object files correspond to the
dependent project options, and the corresponding configuration files. Make sure to use
the object file that matches your other project options.
Prebuilt libraries, page 57. The table also shows how the object files correspond to the
dependent project options, and the corresponding configuration files. Make sure to use
the object file that matches your other project options.
For a list of all prebuilt object files for the IAR CLIB Library, see Table 26, Prebuilt
libraries, page 86. The table also shows how the object files correspond to the dependent
project options. Make sure to use the object file that matches your other project options.
libraries, page 86. The table also shows how the object files correspond to the dependent
project options. Make sure to use the object file that matches your other project options.
Setting library and runtime environment options
You can set certain options to reduce the library and runtime environment size:
●
The formatters used by the functions
printf
,
scanf
, and their variants, see
●
The size of the stack and the heap, see The data stack, page 41, and The return
address stack, page 43, respectively.
address stack, page 43, respectively.
Special support for embedded systems
This section briefly describes the extensions provided by the AVR IAR C/C++ Compiler
to support specific features of the AVR microcontroller.
to support specific features of the AVR microcontroller.
EXTENDED KEYWORDS
The AVR IAR C/C++ Compiler provides a set of keywords that can be used for
configuring how the code is generated. For example, there are keywords for controlling
the memory type for individual variables as well as for declaring special function types.
configuring how the code is generated. For example, there are keywords for controlling
the memory type for individual variables as well as for declaring special function types.
By default, language extensions are enabled in IAR Embedded Workbench.
Command line
Description
-I\avr\inc
Specifies the include paths
-I\avr\inc\{clib|dlib}
Specifies the library-specific include path. Use clib or
dlib
depending on which library you are using.
libraryfile.r90
Specifies the library object file
--dlib_config
C:\...\configfile.h
Specifies the library configuration file (for the IAR DLIB
Library only)
Table 5: Command line options for specifying library and dependency files