Re: [arm-gnu] Thumb mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] Thumb mode



On Thursday 21 January 2010 04:45:10 Kishore wrote:
> Is there any way of informing the compiler to compile ISR's in ARM mode?
> The way i currently know is by compiling the file that contains the ISR
> without the -mthumb compiler option.
>
> The problem i have is that my build system puts in the -mthumb option
> globally and i override that with -marm option for files containing the
> ISR's. However, I would curious to know if there is another method like a
> function attribute to the same effect.


While Carlos has given you adequate answer, it leaves me wondering why you'd 
want to do this.

While ARM  mode is faster on some devices that is not true for all devices.