You copied the Doc URL to your clipboard.

-mthumb

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.

Note

The -mthumb option is only valid with AArch32 targets, for example --target=armv8a-arm-none-eabi. The compiler ignores the -mthumb option and generates a warning with AArch64 targets.

Default

The default for the armv8a-arm-none-eabi target is -marm.

Example

armclang -c --target=armv8a-arm-none-eabi -mthumb test.c

Related reference

Was this page helpful? Yes No