The order of your code is a factor, unfortunately. You could try code
jumping...
{
JumpToMyFunction();
}
...up to 32K of code
void JumpToMyMethod()
{
MyFunction();
}
...up to 32K of code
void MyFunction()
{
...code...
}
Or you could try a larger memory model. I eventually wound up using the
large memory model, and it really hasn't caused me any great performance
problems. Maybe try the "smart" memory model first, and if that doesn't work
try the "large" memory model. You'll find this under "Code Generation"->"68K
Processor" within your project settings in CodeWarrior, if that's what
you're using.
Cheers,
Mark
-----Original Message-----
From: Michael Sealand <[EMAIL PROTECTED]>
To: Palm Developers Forum List <[EMAIL PROTECTED]>
Date: Tuesday, August 31, 1999 11:19 AM
Subject: 16-bit code reference out of range
>Hello All,
>
> I'm using Codewarrior to compile my app. I just moved some code
>around that had been working fine but now when the program links, I these
>link errors:
>
> Link Error : Zeus:Documents:Development:Palm III:In
>Progress:PocketMLS:Src:Common.c: 'StatusFormDoCommand' 16-bit code
>reference to 'WaitForPrompt' is out of range.
>
> Link Error : Zeus:Documents:Development:Palm III:In
>Progress:PocketMLS:Src:Common.c: 'StatusFormDoCommand' 16-bit code
>reference to 'ConnectToSystem' is out of range.
>
>Any ideas? I figure it's because I moved the location of the code. Is
>there a compiler setting that will help me here? I would prefer not to
>move my code back the way it was because I'm attempting to split the code
>up in to separate groups so that more than one person can work on the
>app. Any help will be greatly appreciated.
>
>
> Thanks in advance,
> Michael Sealand
> Baynet World, Inc.
> [EMAIL PROTECTED]
>