> I am developing Palm Application using latest version of POL. 
> On some stage
> of development
> process I received "Near data segment is bigger than 64k" 
> linker error. I
> know about
> segment structure of the Palm Applications and also I know 
> that data segment
> should  be
> less than 64k. Code of my Application is divided between 7 
> segments and I
> think that data
> segment does not have more than 64k information. 

The 64K data issue is completely unrelated to multi-segmenting. You are only allowed 
to have 32K of global/static data referenced from either side of the A4 register. 
Assuming your're using CodeWarrior, you can see how much space you're using by 
generating a link map from your last successful link (set this in the 68K Linker 
panel). Then look at your .tmp.MAP file and after all the code segment information, 
there is a line that tells you how much space you are takikng up above and below A5. 
Then, you can look at ways to decrease this. In the 68K Processor panel, check the box 
for PC-Relative Constant Data to move some of your constant data into the code 
segment. You might also benefit from using the new Expanded Mode in CW for Palm V8 
(see http://www.metrowerks.com/pdf/Expanded_Mode.pdf for more details) since you're 
using C++.

-hkmlt

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

Reply via email to