| |||
| Home > Compiler Command-line Options > --arm_only | |||
This option enforces ARM-only code. The compiler behaves as if Thumb is absent from the target architecture.
The compiler propagates the --arm_only option
to the assembler and the linker.
For targets that support the ARM instruction set, the default
is --arm. For targets that do not support the
ARM instruction set, the default is --thumb.
armcc --arm_only myprog.c
If you specify armcc --arm_only --thumb myprog.c,
this does not mean that the compiler checks your
code to ensure that no Thumb code is present. It means that --thumb overrides --arm_only, because
of command-line ordering.
Assembler command
line options in the Assembler Reference for
information on --16 and --32
About ordering the compilation tools command-line options in Introducing ARM Compilation Tools.