Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
162
Descriptions of segments
AVR® IAR C/C++ Compiler
Reference Guide
This segment and its length is normally defined in the linker command file by the 
command:
-Z(DATA)NEAR_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 near memory, seNew and Delete operators, page 114.
NEAR_I
Holds non-zero initialized static and global 
_ _near
 variables.
XLINK segment memory type
DATA
Memory space
Data. The address range is 
0x0–0xFFFF
.
Description
Holds static and global 
_ _near
 variables that have been defined with non-zero initial 
values. 
When the 
-y
 compiler option is used, 
NEAR_C
 data (
_ _near
 or 
_ _tiny
) is located in 
this segment.
NEAR_ID
Holds 
_ _near
 variable initializers.
XLINK segment memory type
CODE
Memory space
Flash. The address range is 
0x0–0x7FFFFF
.
Description
Holds initial values for the variables located in the 
NEAR_I
 segment. These values are 
copied from 
NEAR_ID
 to 
NEAR_I
 during system initialization.