Atmel CAVR-4 ユーザーズマニュアル

ページ / 323
CAVR-4
58
Using a prebuilt library
AVR® IAR C/C++ Compiler
Reference Guide
On the command line, you must specify the following items:
Specify which library object file to use on the XLINK command line, for instance:
dlavr-3s-ec-64-f.r90
Specify the include paths for the compiler and assembler:
-I avr\inc
Specify the library configuration file for the compiler:
--dlib_config C:\...\dlavr-3s-ec-64-f.h
You can find the library object files and the library configuration files in the subdirectory 
avr\lib\dlib
.
CUSTOMIZING A PREBUILT LIBRARY WITHOUT REBUILDING
The prebuilt libraries delivered with the AVR IAR C/C++ Compiler can be used as is. 
However, it is possible to customize parts of a library without rebuilding it. There are 
two different methods:
Setting options for:
Formatters used by 
printf
 and 
scanf
The sizes of the heap and the stack
Overriding library modules with your own customized versions.
The following items can be customized: 
For a description about how to override library modules, see Overriding library 
modules
, page 61.
Items that can be customized
Described on page
Formatters for printf and scanf
Startup and termination code
Low-level input and output
File input and output
Low-level environment functions
Low-level signal functions
Low-level time functions
Size of heaps, stacks, and segments
Table 16: Customizable items