credo@... wrote:
> Theorically there should be an "-mthumb" switch for
> the GCC to control
> this, according to some articles above 2.95.3 and to
> some others above
> 3.00.0, but for me it wasn't there. Of course it is
> possible to use
> seperate arm-elf and thumb-elf compilers, but since
> this subject came up
> here I'd like to find or compile a version
> supporting both at the same
> time. Anybody had more success on this front?
I *may* have something which works: I can't be
completely sure, since I haven't tried to build
anything more complex than a few simple test
functions, but I have hopes. :)
I built the very latest gcc-3.0 snapshot (20010527)
using the "arm-elf" target. I had to make a fix to
libgcc2.c: it calls for a nonexistant "frame.h"
include, so replaced it with a different .h file. (I
don't remember which one, off the top of my
head...I'll check my build tree later, if anyone
cares. There's a clue in the ChangeLog, if you look
for it.)
I've managed to generate ARM code, and use -mthumb to
generate what looks like good thumb code. So I at
least know it's theoretically possible.
--Galen
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/