The common reason you see this is if a single file compiles to a code 
resource that is over (or close to) 32K.  It has to do with static globals 
I think.  Solutions:


* One solution that seems to work sometimes (haven't investigated why) is 
to take all of the globals that you have that are marked "static" and take 
out the "static".  This changes how the globals are allocated...

* Optimize your code.  Look for places where you have extra code around and 
take it out.

* If using the Handspring GCC tools, split your work into multiple files. 
The current Handspring gcc tools support a single code segment of 64K, so 
as long as you don't go over that, you're OK.  Remember, each jump still 
has to be under 32K in distance though!

* If using Palm's GCC tools, upgrade to the newest versions (2.0), then use 
multi-segmenting.  Haven't investigated this solution too much myself (just 
a little), but it should solve your problems.


Oh yeah, and if you want to see the assembly, I believe you can use the 
"-save-temps" flag.

Good luck!

---

--On Thursday, April 27, 2000 8:33 PM -0400 Mitch Fawcett 
<[EMAIL PROTECTED]> wrote:

> I've been programming for the Palm successfully for over a year and this
> is the first time I've really gotten stumped.  The problem is when I
> compile the program I'm working on I get like several hundred error
> messages that all look like the following.
>
> C:\WINDOWS\TEMP/cc001000.s:426: Error: Signed .word overflow; switch may
> be too
> large; 32930 at 0x3ea
> C:\WINDOWS\TEMP/cc001000.s:462: Error: Signed .word overflow; switch may
> be too
> large; 32942 at 0x442
> C:\WINDOWS\TEMP/cc001000.s:486: Error: Signed .word overflow; switch may
> be too
> large; 32938 at 0x482
> C:\WINDOWS\TEMP/cc001000.s:524: Error: Signed .word overflow; switch may
> be too
> large; 32938 at 0x4f0
> C:\WINDOWS\TEMP/cc001000.s:643: Error: Signed .word overflow; switch may
> be too
> large; 32930 at 0x620
>
> Can anyone shed any light?  I'm not sure what code snippets would help
> because it is not giving what I recognize as a line number I can relate
> to. The size of the source is around 360KB; compiled it's 54KB. I'm using
> GCC to compile.
>
> Mitch
>
>
>
>
>
>
>
>
>
> --
> 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

Reply via email to