CONFIG_MINIMAL_LIBC_OPTIMIZE_STRING_FOR_SIZE

Use size optimized string functions

Type: bool

Help

Enable smaller but potentially slower implementations of memcpy and
memset. On the Cortex-M0+ this reduces the total code size by 120 bytes.

Direct dependencies

SOC_ESP32C3 || SOC_ESP32 || SOC_ESP32S2 || MINIMAL_LIBC

(Includes any dependencies from ifs and menus.)

Defaults

Kconfig definitions

At <SoC>/riscv/esp32c3/Kconfig.defconfig:51

Included via Kconfig:8Kconfig.zephyr:27

Menu path: (Top)

config MINIMAL_LIBC_OPTIMIZE_STRING_FOR_SIZE
    bool
    default n
    depends on SOC_ESP32C3

At <SoC>/xtensa/esp32/Kconfig.defconfig:44

Included via Kconfig:8Kconfig.zephyr:27

Menu path: (Top)

config MINIMAL_LIBC_OPTIMIZE_STRING_FOR_SIZE
    bool
    default n
    depends on SOC_ESP32

At <SoC>/xtensa/esp32s2/Kconfig.defconfig:32

Included via Kconfig:8Kconfig.zephyr:27

Menu path: (Top)

config MINIMAL_LIBC_OPTIMIZE_STRING_FOR_SIZE
    bool
    default n
    depends on SOC_ESP32S2

At <Library>/libc/Kconfig:160

Included via Kconfig:8Kconfig.zephyr:43<Library>/Kconfig:4

Menu path: (Top) → C Library

config MINIMAL_LIBC_OPTIMIZE_STRING_FOR_SIZE
    bool "Use size optimized string functions"
    default y if SIZE_OPTIMIZATIONS
    depends on MINIMAL_LIBC
    help
      Enable smaller but potentially slower implementations of memcpy and
      memset. On the Cortex-M0+ this reduces the total code size by 120 bytes.

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