e8413d18f5
Zephyr currently allows users to choose a compiler optimization between -O0, -Og and -Os, the default being the latter as it offers a good compromise between speed and flash usage. In cases the speed matters and/or the flash usage doesn't, optimizing for speed with -O2 is another alternative. For example in case of a simple application doing cryptographic signature validation with mbedtls, the flash size increase by about 15% compared to -Os, while it provides a 15% speed boost for a RSA signature and 30% speed boost for a ECC signature. This patches therefore adds a new option CONFIG_SPEED_OPTIMIZATIONS corresponding to the -O2 flag, but keep the default set to CONFIG_SIZE_OPTIMIZATIONS. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> |
||
---|---|---|
.. | ||
generated | ||
CMakeLists.txt | ||
Kconfig | ||
empty_file.c | ||
printk.c | ||
reboot.c | ||
stats.c |