:orphan: .. title:: choice: Optimization level .. _choice_472: .. describe:: choice: Optimization level *Optimization level* Type: ``bool`` 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. Defaults ======== - \ :option:`NO_OPTIMIZATIONS ` if \ :option:`COVERAGE ` - \ :option:`DEBUG_OPTIMIZATIONS ` if \ :option:`DEBUG ` - \ :option:`SIZE_OPTIMIZATIONS ` Choice options ============== - \ :option:`SIZE_OPTIMIZATIONS ` - \ :option:`SPEED_OPTIMIZATIONS ` - \ :option:`DEBUG_OPTIMIZATIONS ` - \ :option:`NO_OPTIMIZATIONS ` Kconfig definition ================== .. highlight:: kconfig At ``Kconfig.zephyr:186`` Included via ``Kconfig:8`` Menu path: (Top) → Build and Link Features → Compiler Options .. parsed-literal:: choice bool "Optimization level" default \ :option:`NO_OPTIMIZATIONS ` if \ :option:`COVERAGE ` default \ :option:`DEBUG_OPTIMIZATIONS ` if \ :option:`DEBUG ` default \ :option:`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.)*