The latest development version of this page may be more current than this released 2.5.0 version.
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 arch/arm/core/aarch32/Kconfig:92

Included via Kconfig:8Kconfig.zephyr:29arch/Kconfig:12arch/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.)