Atmel CAVR-4 ユーザーズマニュアル
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.
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
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:
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
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.