CONFIG_COMPILER_ISA_THUMB2

Compile C/C++ functions using Thumb-2 instruction set

Type: bool

Help

This option configures the compiler to compile all C/C++ functions using the Thumb-2 instruction set.

N.B. The scope of this symbol is not necessarily limited to the C and

C++ languages; in fact, this symbol refers to all forms of “compiled” code.

When an additional natively-compiled language support is added in the future, this symbol shall also specify the Thumb-2 instruction set for that language.

Direct dependencies

ISA_THUMB2 && !ARM64 && ARM

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definition

At <Zephyr>/arch/arm/core/aarch32/Kconfig:92

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:29<Zephyr>/arch/Kconfig:12<Zephyr>/arch/arm/Kconfig:42

Menu path: (Top) → ARM Options

config COMPILER_ISA_THUMB2
    bool "Compile C/C++ functions using Thumb-2 instruction set"
    default y
    depends on ISA_THUMB2 && !ARM64 && ARM
    help
      This option configures the compiler to compile all C/C++ functions
      using the Thumb-2 instruction set.

      N.B. The scope of this symbol is not necessarily limited to the C and
           C++ languages; in fact, this symbol refers to all forms of
           "compiled" code.

           When an additional natively-compiled language support is added
           in the future, this symbol shall also specify the Thumb-2
           instruction set for that language.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)