On Sun, Aug 01, 1999 at 07:37:00PM -0700, Mike Davis wrote:
> I am using GCC.  I get a warning that I am over the Code
> Resource limit.  I am using SDK 2.0.
> 
> There is a code0 resource and a code1 resource.  code 1 resource
> is at 32717 before a compile.  code 0 is only 300+ bytes.
> 
> Is this limit a function of the OS version?  
> Is this limit a GCC limit?
> Is this limit a limit on each of code0 and code1?
> If so, how does one specify which resource the code belongs to?
> Does going to SDK 3.0 allow me more than 32k code resource, WITH
>     GCC?

This is a limit of the version of gcc included with prc-tools 0.5.0.
Each code resource must be less than 32k (you can make it 64k with some
trickery involving jump islands; don't have a link handy, but I'm pretty
sure I saw it at roadcoders.com).  In prc-tools 0.5.0, all your code
goes into the code0001 resource.  There are three ways to make an app
use more than one code resource:

1) Use CodeWarrior (I think CW can do this, but I'm not positive)
2) Use MultiLink (http://www.djw.org/product/palm/multilink).  Caveat: I've 
   had problems getting this to work.
3) Use prc-tools 0.5.1 (currently in alpha, see 
http://homepages.enterprise.net/jmarshall/palmos/)

HTH, 
-Ben

-- 
Ben Darnell              [EMAIL PROTECTED]
http://www4.ncsu.edu/~bgdarnel/thoughtstream

Reply via email to