arm thumb mode code generation -- gcc arm linux compiler

arm, gcc

Solution

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

Problem

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 ?

Original source

Related problems