Skip to content
Commit 5d55730c authored by Michael Hope's avatar Michael Hope Committed by Anas Nashif
Browse files

libc: minimal: add size optimized string functions



The current implementations of memcpy and memset are optimized for
performance and use a word based loop before the byte based loop.

Add a config option that skips the word based loop. This saves 120
bytes on the Cortex-M0+ which is worthwhile on small apps like a
bootloader.

Enable by default if SIZE_OPTIMIZATIONS is set.

Signed-off-by: default avatarMichael Hope <mlhx@google.com>
parent 395b0c3a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment