I don't use GCC, but it looks like a relative offset problem.  The 68000
can use absolute addressing, or a faster, inherently relocatable
relative addressing.  The problem with relative addressing is that it is
limited to a 16-bit signed offset - ie, you can only branch to or call
code which is plus or minus 32K from the current instruction.

Sorry I couldn't be of more help.

-jjf

-----Original Message-----
From: Mitch Fawcett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 27, 2000 5:34 PM
To: Palm Developer Forum
Subject: Overflow error - assembler?


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