At 00:54 2002-10-25 -0700, you wrote:
Is there an upper bound on the number of segments that can be used by a
single PRC.  How about complete program size????
There is no hard coded limit for the number of segments, but its likely that you'd hit the limit for the amount of global data space which is a hard 64K, with no single data item exceeding 32K. Since the intersegment jumptable is a global variable, this limits the number of functions that can be exposed from one segment to another to a little more than 5400, since each jumptable entry needs six bytes.

You can improve the data situation some by using expanded mode in CodeWarrior, but that mainly helps for when you have a lot of virtual function tables or exception tables when using C++.

--
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/


Reply via email to