4
votes

I have a question for ARM thumb mode. Does GCC arm linux compiler generates thumb mode code on it own ?
Or we have to use some compiler directive to tell compiler to generate thumb mode code ?

1

1 Answers

2
votes

The default is to switch between both modes as appropriate but -mthumb overrides it. The list of ARM options may be found here:

http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html