The 68K GAS assembler is trying to assemble a jump table or a set of
relative jumps for a C switch statement, but the code for the switch is too
large, meaning that your relative jump is beyond the 32K limit that a
relative jump can reach.  The .s file it mentioned is a temporary file
produced by GCC, which is then assembled by GAS into your object file.

The only way to fix this would be to recode the switch statement to have
less code -- moving sections to separate functions should help.

"Mitch Fawcett" <[EMAIL PROTECTED]> wrote in message
news:9849@palm-dev-forum...
>
> 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.




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to