:orphan: .. title:: choice: Optimization level .. _choice_644: .. describe:: choice: Optimization level *Optimization level* Type: ``bool`` Help ==== .. code-block:: none Note that these flags shall only control the compiler optimization level, and that no extra debug code shall be conditionally compiled based on them. Defaults ======== - \ :kconfig:`NO_OPTIMIZATIONS ` if \ :kconfig:`COVERAGE ` - \ :kconfig:`DEBUG_OPTIMIZATIONS ` if \ :kconfig:`DEBUG ` - \ :kconfig:`SIZE_OPTIMIZATIONS ` Choice options ============== - \ :kconfig:`SIZE_OPTIMIZATIONS ` - \ :kconfig:`SPEED_OPTIMIZATIONS ` - \ :kconfig:`DEBUG_OPTIMIZATIONS ` - \ :kconfig:`NO_OPTIMIZATIONS ` Kconfig definition ================== At ``Kconfig.zephyr:275`` Included via ``Kconfig:8`` Menu path: (Top) → Build and Link Features → Compiler Options .. code-block:: kconfig choice bool "Optimization level" default NO_OPTIMIZATIONS if COVERAGE default DEBUG_OPTIMIZATIONS if DEBUG default SIZE_OPTIMIZATIONS help Note that these flags shall only control the compiler optimization level, and that no extra debug code shall be conditionally compiled based on them. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*