before you start to mess with expanded code you may try to go to project
settings, code generation, 68k processor and check boxes for PC-Relative strings
and PC-Relative constant data. this may save a lot of space in data segment.

but make sure that you don't directly access data which are stored in one
segment in another one, it would find garbage... only when you will send pointer
to const data it will be ok. (bug in CW? feature?)


Jefferson wrote:
> I am compiling my application on CW 9.3 using Palm SDK 5.  While compiling, I
> am getting Link Error “Near data segment is bigger than 64k”.
> 
> 
> 
> I read on the forum that one way to overcome the 64k data segment problem is
> to use the expanded mode.
> 
> 
> 
> I tried using the expanded mode. But still I am getting the link error.
> 
> I saw the MAP file and found that A4 register is fine but in A5 register
> 
> Data section below A5:   2410 bytes
> 
> Data section above A5:  35436 bytes
> 
> 
> 
> Can anybody suggest how I can shift some data from “above A5” section to
> “below A5 section”?
> 
> 
> 
> Thanks for your time.
> 
> 
> 
> Regards Ajay
> 
> 

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

Reply via email to