64k

64k+4*n

 

512k+4*n

512k+52k

0k

52k

alloc xcode

1024k

xconsts

512k

 

 

 

alloc xdata vars

 

Root

 

 

 

 

 

I Space

 

 

 

 

 

 

alloc consts

 

Variable

allocate vars

 

Constant

 

 

 

 

D Space

 

 

D Space

 

 

Flash memory available

 

Ram memory available.

 

for extended code, constant

 

 

 

 

data.

 

 

 

 

Figure 8-6. Use of Physical Memory Separate I & D Space Model

In Figure 8-6arrows indicate the direction in which variables and constants are allocated as the compile or assemble proceeds. Each of these arrows starts at a constant location in physical memory. This is important because the Dynamic C debugging monitor needs to keep a small number of constants and variable in data space and it needs to be able to access these regardless of the state of the user program. The Dynamic C debugger vari- ables are kept at the top of the data segment starting at 52k and working down in memory. The user-program variables are allocated by the compiler starting just below the Dynamic C debugger data. The Dynamic C constants start at address zero. User constants are allo- cated stating at a low address just above the Dynamic C constants.

126

Rabbit 3000 Microprocessor

Page 135
Image 135
Jameco Electronics 2000, 3000 manual Use of Physical Memory Separate I & D Space Model