"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

[ remainder deleted ]

Since you're using GCC, run the compiler with the -S switch, to cause 
it to simply output the assembly language file. Then you can look at 
the lines in that file whose numbers appear in the error messages.

It sounds like you have a very long branch of some type, perhaps caused 
by a switch statement that has lots of cases and/or very large amounts 
of code in some or all of the cases. The result is that the compiler is 
producing a branch instruction with a target > 32 kbytes away from the 
branch. I have encountered this before with a different 68K C compiler. 
The solution was to break the one big switch statement into two smaller 
switch statements. Ugly, but it worked.

--
Roger Chaplin
<[EMAIL PROTECTED]>

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

Reply via email to