I'm porting a rather large application by PalmOS standards -- it has _thousands_ of methods, and approximately 450 source *.c files.
Well, i've split it into 18 segments, none of which is codewarrior complaining that is too big, but I get the following error messages: __RuntimeModule__: Near data segment is bigger than 64k. (twice) blah.c: 'METHOD_name' 16-bit data reference to 'other_method' is out of range. (a zillion of these) The first segment is only 29K/2K data. Normally, I would take one look at this and just assume that I left a compile option obviously wrong, but after reviewing the target settings and recompiling the errors persist. I'm using the following settings: Codewarrior 8 - 68K target - Expanded mode - 4 byte ints - PalmOSRuntime_4i_A4A5.lib, located in the first segment, along with StdIOPalm.c (it's a stdio app) - Project type: "Palm OS Application" - Code Model: smart - 4 byte ints, checked - Link single segment UNCHECKED One thing that i've noticed OTOH, is that there is a large amount of globals being used (as determined by looking at the "Data" column of the segments view) -- approximately 80K's worth (though the largest number in one segment is 26K). Is there some kind of limit to the total amount of globals allowed for a *.PRC ? Or is there something else that i'm missing? - Max -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
