On Sun, Jun 18, 2000 at 03:37:14PM -0600, Alfred Salton wrote:
> We have reached a size limit beyond which our code will no longer compile,
> apparently when the code resource is ~32k. We are using GCC/PRC Tools. Can
> anyone provide me with an example of creating multiple code resources, or
> any other advise on the problem?

The two other replies (read prc-tools-2.0 info, and the limit is 64K,
but any subroutine must be 32k from the caller).

Also note that any const globals end up in the text segment, i.e. with
your code.  So if you have a long table or string (or set thereof),
you might get more room by moving these to string resources.

e.g.

Char x[] = "this will be a really long string....30K+ ...";

v.s.

char *x;

use a tSTR, then do a DmGetResource on it and lock the pointer upon
startup and unlock upon shutdown.

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