I just tried to go to the Palm link http://www.palm.com/devzone/tn_32kj.html
and I get a message from Palm saying it is not available. Doh.
Mitch
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jun-Kiat
Lam
Sent: Monday, May 01, 2000 2:04 PM
To: Palm Developer Forum
Subject: Re: out of range
Eric,
Here's a little snippet that may help (it's from the Palm KB):
7.2 When building my application the linker reports "16-bit reference out of
range." How do I fix this? (Typically this occurs to users who have had a
large application working for some time and have just added "a little more
code" to the application.)
Due to limitations in the Palm OS, applications cannot make jumps of more
than 32K (usually called "near" or "small" model on 68K series processors).
The error message indicates that someplace in your code you are calling a
function in another block of code that is more than 32K away in the compiled
application. Since the jump is further than the Palm OS allows, the linker
cannot resolve the reference. Here are ways to work around the limitation:
Change the link order of the application
The linker error message will tell you what function in your code was
calling for the function which was too far away. You can determine what
source file the calling and called functions are in and move the source
files closer together in the link order (place the files closer together in
the Segments view of the project, under the Segments tab of the project
window). In many cases a little reorganization of the link order can solve
the problem. However, as you continue to write code for the app and its gets
larger eventually it may not be possible to reorganize the source file link
order to eliminate the problem.
Set the compiler to "Smart" code model
Set the Code Model popup menu of the 68K processor preference panel (in the
Target settings window) to "Smart." This will allow the compiler to resolve
the out of range references itself. There is a size penalty associated with
this, for more info see the explanation of code models in "What does the
Code Model popup do?" below.
Reorganize/Rewrite your code itself
Palm makes several suggestions on how to write your application to avoid
these issues by using jump islands or jump tables. For information see the
following document from Palm http://www.palm.com/devzone/tn_32kj.html.
The URL at the bottom is outdated, but there is an updated version of this
same FAQ in the Palm KB (down at time of typing) with the correct URL, I
believe.
Rgds,
Jun-Kiat Lam
Metrowerks Technical Support
----- Original Message -----
From: "Eric" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, May 01, 2000 12:15 PM
Subject: out of range
> Hello everyone.
>
> I have a question concerning a linking error.
> It says something like "your reference in your 16-bit programming to
> WriteCGRec is out of range".
>
> Can someone tell me what it means?
>
> Thanks,
> Eric Sun
> Developer - RAD systems
> Q. Data Inc.
> 5/1/00 1:07 PM
>
> -----Original Message-----
> From: Eugene Chin [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 01, 2000 1:09 PM
> To: Palm Developer Forum
> Subject: Re: Doubles are 8 bytes?
>
> > Can somebody tell me how to keep CW from always creating doubles
> as
> 8 bytes?
>
> This is a compiler setting. Just go into the settings for your
> project and it will allow you to toggle the sizes of ints and
> doubles.
>
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/