A SERVICE OF

logo

CAVR-4
Contents
vii
The return address stack ....................................................................43
The heap ............................................................................................44
Located data .......................................................................................46
User-defined data segments ...............................................................46
Code segments .......................................................................................46
Interrupt and reset vectors .................................................................46
Functions ............................................................................................46
User-defined segments .......................................................................47
Compiler-generated segments .........................................................47
Efficient usage of segments and memory ....................................47
Controlling data and function placement ...........................................47
Using user-defined segments .............................................................49
Verifying the linked result of code and data placement ........50
Segment too long errors and range errors ..........................................50
Linker map file ...................................................................................50
Managing multiple memory spaces ...................................................51
The DLIB runtime environment ............................................................... 53
Introduction to the runtime environment ..................................53
Runtime environment functionality ...................................................53
Library selection ................................................................................54
Situations that require library building ..............................................55
Library configurations ........................................................................55
Debug support in the runtime library .................................................56
Using a prebuilt library ........................................................................56
Customizing a prebuilt library without rebuilding .............................58
Choosing formatters for printf and scanf .....................................59
Choosing printf formatter ...................................................................59
Choosing scanf formatter ..................................................................60
Overriding library modules ................................................................61
Building and using a customized library .......................................62
Setting up a library project .................................................................63
Modifying the library functionality ....................................................63
Using a customized library ................................................................63