Requests that the compiler targets the T32 instruction set.
Processors in AArch64 state execute A64 instructions. Processors in AArch32 state can execute A32 or T32 instructions. The
-mthumb option targets the T32 instruction set for AArch32 state.
-mthumboption is only valid with AArch32 targets, for example
--target=armv8a-arm-none-eabi. The compiler ignores the
-mthumboption and generates a warning with AArch64 targets.
The default for the
armv8a-arm-none-eabi target is
armclang -c --target=armv8a-arm-none-eabi -mthumb test.c