"Arek Jaszcz" <[EMAIL PROTECTED]> wrote in message
news:52593@palm-dev-forum...
>
> Hi all:
>
> This may be a novice question, but I'm getting a link error because I
> have more than 64 kb of global data. The error reference says to
> "Select the Far Data and Far Strings checkboxes in the 68K Processor
> settings panel."
>
> So, I try the fix, and the program still doesn't compile. What am I
> doing wrong?
It is not possible to have more than 64K of data in a Palm OS program,
at least with current CodeWarrior or GCC compilers. Since all global
data is referenced at a +-32K offset from the A5 register, there is no
way to get to more data.
If you have a lot of constant global data, you could try to move some of
that into a resource. You also can use
#pragma pcrelconstdata on
to put constant data into the code segment so its not stuck in data.
This only works for data that is truly constant, rather than just being
constant after program load.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/