ARM in thumb mode

Nick Clifton nickc@cambridge.redhat.com
Mon Apr 23 07:15:00 GMT 2001


Hi Rafael,

> Philip Blundell wrote:
> 
> > >  I'd want to compile mi C sources into ARM's THUMB code. I have
> > >compiled gcc 2.95.2 with the targets arm-elf and arm-thumb-elf, but I
> >
> > You need to use a target of `thumb-elf'.  The middle component is basically
> > ignored so `arm-thumb-elf' won't do any good.
> 
>    Which version of gcc has the capability to build that target? gcc 2.95.2
> and 2.95.3 don't accept that target.

With the newer versions of gcc you do not need to build a thumb-elf
target.  Instead build a normal arm-elf target and use the command
line switch -mthumb.

Cheers
        Nick



More information about the Gcc mailing list