In article <81345@palm-dev-forum>, [EMAIL PROTECTED] says...
> I have developed a plugin (Code Resource) whose size is more than 64K.
> Because of this i am getting linker errors saying that "16-bit code
> reference to 'xyz()' is out of range". What should i do for this as i can't
> have more than one segment in a code resource.

There is no way to have a code resource greater than 64K.  This is 
because they are resources, and the largest resource size on the device 
is just under 64K -- a larger chunk can't be handled by HotSync manager, 
so there is no way to get it to the device.

However, this error can happen with code resources smaller than 64K if 
the code tries to jump from one end to the other, since the range of a 
jump is 32K.  If you're using CodeWarrior, one quick fix would be to 
turn off Macsbug symbols -- that can save a lot of room.  You also could 
switch to the smart or large code models, although you'll get code bloat 
within the segment.

Finally, you can always have your first code resource go and lock down 
another code resource, then make calls into that one.  It will be hard 
to find explict compiler support for this.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to