Specifications

CAVR-4
Part 2. Compiler reference
Segment reference
155
FAR_HEAP
Holds the heap used for dynamically allocated data in far memory when using the DLIB
library.
XLINK segment memory type
DATA
Memory space
Data. The address range is 0x0–0xFFFFFF.
Description
This segment holds dynamically allocated data in far memory, in other words data used
by
far_malloc and far_free, and in C++, new and delete.
This segment and its length is normally defined in the linker command file by the
command:
-Z(DATA)FAR_HEAP+nn=start
where nn is the length and start is the location.
For more information about dynamically allocated data and the heap, see The return
address stack, page 43. For information about using the
new and delete operators for
a heap in far memory, see New and Delete operators, page 114.
FAR_I
Holds non-zero initialized static and global __far variables.
XLINK segment memory type
DATA
Memory space
Data. The address range is 0x0–0xFFFFFF.
Description
Holds static and global __far variables that have been defined with non-zero initial
values.
When the
-y compiler option is used, __far constant data is located in this segment.