96 Rabbit 2000 Microprocessor
8.4 Allocation of Extended Code and Data
The Dynamic C compiler compiles code to root code space or to extended code space.
Root code starts in low memory and compiles upward.
Figure 8-3. Example of Memory Mapping and Memory Usage
Allocation of extended code starts above the root code and data. Allocation normally con-
tinues to the end of the flash memory.
Data variables are allocated to RAM working backwards in memory. Allocation normally
starts at 52K in the 64K D space and continues. The 52K space must be shared with the
root code and data, and is allocated upward from zero.
Dynamic C also supports extended data constants. These are mixed in with the extended
code in flash.
Stack
xcode
window
64K
52K
56K
Root
code
Va ri a ble s
Debug
Va ri ab le s
Stacks
Root code and constants
Extended code
512K
1024K
0K
Available RAM