In article <86369@palm-dev-forum>, [EMAIL PROTECTED] says...
> 
> Would anyone care to explain the meaning of the following 4 lines taken
> from a MAP file generated by CW 7 ? (TIA)
> 
> Data section below A5:      1 bytes
> Data section above A5:     40 bytes

Your global data is stored in a chunk of memory allocated when the 
program starts.  The A5 register is setup by the runtime environment to 
point into the middle of this chunk, because its easy for the processor 
to access things +-32K from A5.  This tells you how much data is 
allocated on each side, and when added together, indicates the size of 
your global data.

> Uninitialized near data
> Data:     -1       1 bytes  "firstOpen$327"

Uninitialized data is data that gets set to zero at program start by the 
system.  Initialized data is set to something else and is accompanied by 
a compressed image used by the runtime to setup the global memory.

See my article in this months Handheld Computing Developer newsletter 
for more details on Palm OS program startup.  Go to

http://www.hhcenterprise.com/Developer/Issue2/Issue_TOC.htm

for more details.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Get help at http://palmoswerks.com/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to