This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: arm-gcc and THUMB instructions?


Hi Jan,

>	Can gcc compile code for ARM7TDMI processors in THUMB state?

Yes

>If yes: how to configure it??

specify -mthumb-interwork and -mcpu=arm7tdmi on the commandline of gcc.
example:
[prompt]$ arm-elf-gcc -mthumb-interwork -mcpu=arm7tdmi -o test test.c

best regards,
Jan

PS: this is stated clearly in the manual (along with many other cool options
for ARM targets.) Have a look at gcc.gnu.org to download the manual.



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]