This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired 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

(USERSPACE && BOARD_QEMU_CORTEX_R5) || (ISA_THUMB2 && ARM)

(Includes any dependencies from ifs and menus.)

Defaults

  • n

  • y

Kconfig definitions

At boards/arm/qemu_cortex_r5/Kconfig.defconfig:14

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config COMPILER_ISA_THUMB2
    bool
    default n
    depends on USERSPACE && BOARD_QEMU_CORTEX_R5

At arch/arm/core/aarch32/Kconfig:96

Included via Kconfig:8Kconfig.zephyr:39arch/Kconfig:12arch/arm/Kconfig:57

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 && 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.)