Re: [uCsimm] m68k-pic-coff assembler error

From: Micah Dowty (micah@homesoftware.com)
Date: Thu Jan 25 2001 - 18:49:39 EST


Try compiling to assembler (by tacking a -S on to that last command) and
see what's at line 7070 and 7109 in there. If you're no good at
decyphering assembler, send a copy of the problem areas.

On Wed, 24 Jan 2001, Brian Riley wrote:

>
> main.c has no switch statements in it. Other C files do, but they
> compiled to object files without a hitch.
>
> -B
>
> riley@opticalaccess.com
>
> "D. Jeff Dionne" wrote:
> >
> > Looks like a switch statement is too large.
> > J.
> >
> > On Mon, 22 Jan 2001, Brian Riley wrote:
> >
> > >
> > > I'm working on porting an SNMP daemon to uClinux (specifically the
> > > uCsimm). I have no problem compiling any of the object files except for
> > > one: main.c. During compilation, I get the following error:
> > >
> > > /tmp/ccPqDRxc.s: Assembler messages:
> > > /tmp/ccPqDRxc.s:7070: Error: Signed .word overflow; switch may be too
> > > large; 41546 at 0x71c6
> > > /tmp/ccPqDRxc.s:7109: Error: Signed .word overflow; switch may be too
> > > large; 41550 at 0x7222
> > > ...
> > > ...
> > > (dozens of lines more...)
> > >
> > > I'm not overly experienced with assemblers, but I've been able to figure
> > > out from postings about similar errors (mainly for the Palm Pilot's M68K
> > > processor) that this is the result of the jump distance between
> > > functions being larger than 32k. The main.c file consists of some
> > > #include's and 3 short function calls (<25 lines) in addition to main().
> > >
> > > The only suggested solution I've seen is to break up the suspect code
> > > into smaller fragments. Since this code is already fairly simple, I'm
> > > not sure how to break it up even more...
> > >
> > > Any suggestions? I'm really quite stumped at the moment and would
> > > appreciate any pointers or information anyone could toss my direction.
> > >
> > > Thanks!
> > >
> > > BTW- I've tried using the m68k-pic-coff-gcc included on the uClinux CD
> > > as well as the m68k-pic32-coff-gcc rpm from
> > > http://home.at/uclinux/pic32/. I run into the same errors with either
> > > compiler installed.
> > >
> > > --
> > >
> > > Brian Riley
> > > Optical Access
> > > 10343 Roselle St.
> > > San Diego, CA 92121
> > >
> > > P: 858-792-8501 x116
> > > F: 858-792-4962
> > > http://www.opticalaccess.com
> > > This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/
> > >
> >
> > This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/
>
> --
>
> Brian Riley
> Lead Mechanical Engineer
> Optical Access
> 10343 Roselle St.
> San Diego, CA 92121
>
> P: 858-792-8501 x116
> F: 858-792-4962
> http://www.opticalaccess.com
> This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/
>

-- 
Everything under the sun is in tune,
but the sun is eclipsed by the moon

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:40 EST