E.g., I have nine code segments, but they're pretty random in terms of which files I put in them. I read in the Companion that this can effect performance and it mentioned "experimenting" to find optimal configurations, but I really don't know where to begin in terms or rearranging things.
To minimize the size of the jumptable, try to cluster functions together in segments, where the number of calls from one segment to another is minimized. There is no good mechanism for getting feedback on the composition of the intersegment jumptable in the CW linker, but you can turn on mapfile creation and at least see how large it is and whether it is something that is a major source of memory usage.
I'm using CW8 with the latest patch. If CW9 assists with optimizing, I'd be interested in hearing that.
One technique, if you're building a C++ app, is to use expanded mode -- this shifts a lot of data used for C++ objects into the storage heap. Right now, expanded mode works much better in V8.3 than V9.1, but when 9.2 is posted, it will have all the known expanded mode problems from V9 fixed.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
