[arm-gnu] Re: illegal instruction ARMv7 on omap3evm, with -mthumb option
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] Re: illegal instruction ARMv7 on omap3evm, with -mthumb option



On 24/05/10 05:57 PM, Stuart Waugh wrote:
You said

It generates Thumb-2 code if you specify -march=armv7-a and -mthumb.
It never generates ARM mode code if you specify -mthumb.

Does that mean it generates only ARM if I do not specify -mthumb?
Without that option, why do I still see when I run readelf on the generated executable
     TAG_THUMB_ISA_use: Thumb-2 ?

No, if the CPU or architecture you specify only implements Thumb-2, then it will only generate Thumb-2. The -mthumb flag is designed to enable Thumb mode on a CPU that defaults to ARM mode.

Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos@xxxxxxxxxxxxxxxx
(650) 331-3385 x716