ARM in thumb mode

Rafael Rodríguez Velilla rrv@tid.es
Mon Apr 23 01:08:00 GMT 2001


  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
don't know how to make it compile THUMB code (the only think that seems
to work is inserting asm ("bx r0;.THUMB").  Is there any option that can
be passed to gcc to avoid this unsafe way to generate THUMB code?


--
Rafael Rodríguez Velilla        rrv@tid.es
Telefónica I+D          http://www.tid.es
Telf: +34 - 91 337 4270





More information about the Gcc mailing list