smart code model just lets you not have to worry about locality (functions
that require more than a 16bit jump), at the cost of bloating the code size.

it does not split your code segments when they exceed 64kb.  on the PalmOS,
any given code segment is not allowed to exceed 64kb, and i bet your 85kb
executable is a single code segment that has barely exceeded 64kb (the other
21kb are resources, etc).  convert your app to a multi-segment app instead.
(you may have to create a new project from the multi-segment template, and
then add all your files to it - i've heard something about trying to convert
a single-segment project to a multi-segment project being pretty difficult,
but i haven't tried it myself - i knew my app would need to be multi-segment
so i started out that way).



-----Original Message-----
From: Hardy Macia <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Sunday, March 21, 1999 6:48 AM
Subject: Failed to connect to remote/Palm OS error 513


>I'm getting "Failed to connect to remote" when tyring to download via the
>debugger and "Palm OS error 513" if I just to install the .prc directly
>into the emualtor.
>
>I'm using CW 5. I have Smart Code Model selected in the project prefs. The
>.prc is about 85k.
>
>If I comment out any one function call the my project works fine.
>
>Is the "Smart" code model linker broken? Do I need to create jump tables?
>It sounds like it should be handling all of this for me.


Reply via email to