>Subject: Re: .prc size question
>From: "Matt Hebley" <[EMAIL PROTECTED]>
>Date: Mon, 1 Jul 2002 17:49:53 +1200
>----- Original Message -----
>>From: "Stringer" <[EMAIL PROTECTED]>
>>Sent: Monday, July 01, 2002 4:50 PM
>>----- Original Message -----
>>> --- Alexander Povalyaev <[EMAIL PROTECTED]> wrote:
>> > Is there any tool to decrize the size of the .prc file?
>>
>> Another one is to use the "Small" memory model and partition
>> your application to use segments no greater than 32KB
>> If you are currently using "Smart" or "Large" this can chop up to
>> 15% off your PRC's size!
>
>I believe, that with the Small model, you can have segments larger
> than 32k as long as all function call jumps are less than 32k. 
>Can make arranging your source files difficult as it gets bigger.

If you are creating reasonably sized source files (say one source file
per form) then segmenting your application with CodeWarrior is
extremely simple.  And while you can let segments creep over 
32KB even with "Small", it is a good discipline to always ensure 
they are under 32KB.  With Codewarrior it is very easy to view
the pre-optimized size of each segment.
Based on comments on the forum, segmenting using GCC appears
to need more effort, though I have no experience of using that 
toolset. 

Roger Stringer
Marietta Systems, Inc.


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

Reply via email to