At 10:48 AM 5/19/2005, you wrote:
I'm getting this error in my project but I think I don't understand
exactly what it means.

My project has 4 segments:
Segment 1: Code 29K Data 4K
Segment 2: Code 58K Data 13K
Segment 3: Code 53K Data 21K
Segment 4: Code 3K Data 62K

I thought that the error mean I was using more than the 64K Data limit
per chunk. So, I change the segments to that structure in a new
project, compile it but I got the same error.

I'm using Expanded mode and RTTI. Maybe this is too much for the Palm
OS. The truth is I'm writing a compiler for Palm which I've already
written for my PC, and I want to use this code without having to
change it so much.

You're exceeding the amount of data space allowed for read/write variables. The 64K variable limit is per-program, not per-segment.


Expanded mode can help some, but the expanded data section only stores things like C++ virtual tables, exception handler tables, and intersegment jump tables. You're going to need to look at the data usage and see if there's something you can change to be a runtime allocation rather than a static allocation.


-- Ben Combee, Senior Software Engineer, palmOne, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/


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

Reply via email to