>>Matt Mason
>>Sent: Thursday, January 11, 2001 5:28 AM
>>To: Palm Developer Forum
>>Subject: When do know it's too big?
>>
>>How will I know when my program needs to be seperated into multiple
>>segments?  When its 32 K?

>Subject: RE: When do know it's too big?
>From: "Jacky Cheung" <[EMAIL PROTECTED]>
>Date: Thu, 11 Jan 2001 08:09:23 +1300
>
>Hi, there are two size restrictions - 32k jump limit and 64k per segment.
>You may not need to multisegment the program when it is above 3
>2k as you can just arrange the file order to get around.  
>But you probably need multisegment if it is greater than 64k.  
>You will get link error when you have problem, or just look at
>the .prc  file size.

>By the way, I have a single segment program with 72k but I can
>still run it in the emulator, why?

If your program is over 32KB and is about as big as it is going to
get then just carefully arrange your modules and your functions.

Otherwise, its a good time to multi-segment!

And yes, with "Smart" your single segment PRC can be bigger that
64KB.  But at some point you'll add an extra line of code, cross
the magic threshold and it will fail to load!  The difference is of course
the resources and other data within the PRC that masks the 
actual size of the code.

But with multi-segment, "small" and every segment being less than
32KB, your program should actually be smaller than with "smart"
and single segment!

Roger Stringer
Marietta Systems, Inc.


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

Reply via email to