Hi All,
 
I am trying to port a C code from windows to Palm OS
Platform
(Codewarrior 9.0). 
 
The segments info shows the follows details.
 
Segment 1 : Code 27k DATA 4k
Segment 2 : Code 11k DATA 376
Segment 3 : Code 19k DATA 3k
Segment 4 : Code 34k DATA 2k
Segment 5 : Code 27k DATA 1k
Segment 6 : Code 40 DATA  48k <----- (Problem)
Segment 7 : Code 30k DATA 24k
 
I am getting the following link errors. 
 
__RuntimeModule__ : Near data segment is greater than 
64k
__RuntimeModule__ : Near data segment is greater than 
64k
PalmOS_Startup: 'MTWK::__LoadAndRelocate__' 16-bit
data reference is out
of range.
 
1,2 should be the problem with Segment 6. The 3rd link
error should go
off if I rearrange the code snippet. 
 
Segment 6 : Code 40 DATA  48k <----- (Problem)
 
As you can see, the code part is almost zero. It has a
constant
definition of a structure with MANY values assigned.
 
const  Ent EntTable[8192] = {12,1........}.. goes on
and on.
 
Should I break the file into 3-4 smaller files and get
the value from
the correct table runtime?
 
Will adding the code in expanded mode help? It will
give us more heap
space. 
 
Ben, please let me know what to do.
 
Thanks.
 
Best,
Manohar
 
Best regards,
---
Support Team,
MantraGroup Inc.
Tel: 1.608.827.7811
Email:  mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED]
Feel the Mantra

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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

Reply via email to