Hi DeAnna,
You need to become familiar with Palm OS applications which have multiple
segments. Some suggestions and comments if you are using CodeWarrior are
below. You probably already know some of this, but I didn't want to assume
too much.
- You need to create a multi-segment app.
- Segments are just a way of breaking your code in to sub-64K pieces.
- One function can call another function regardless of which segment it is
in.
- You need to specify the "smart" or "large" code model (see the 68K
Processor pane in your project settings). With "smart" model, jumps within a
segment are 16-bit. Jumps between segments involve multiple jumps to get
there (handled automatically for you by CW).
- There is a small performance penalty when calling a function in a
different segment. In general, this is insignificant and you should ignore
it.
- Each segment can contain one or more "xyz.c" source files in it. As your
segments grow, you just create more segments to keep each of them below 64K
in size.
- You can start with a multi-segment project skeleton in CW 6 by choosing
File -> New -> Palm OS 3.1 Stationary -> Palm OS Multi-segment App
- Suggested reading: "Targeting Palm OS" manual -> "About Palm OS
Projects" -> "Types of Projects on Palm OS" -> "Large Application Projects
for Palm OS" and "Converting a Small Application to a Large Application".
Good luck!
-----Steve Jackson
"DeAnna Davidson" <[EMAIL PROTECTED]> wrote in message
news:13398@palm-dev-forum...
>
> OK, I understand the basics of the 64 K limit (I think). But I have a
> fairly large app, that is not even close to completion, for which I get
> "Link Error: XForm: XFunction 16-bit code reference to YFunction is out
of
> range" a lot. I was wondering if there is some setting in CW that I can
> make to help me out. I have a lot of features left to add, so the code is
> going to continue to grow. Any suggestions?
>
> DeAnna
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/