zephyr/misc
Aurelien Jarno e8413d18f5 kconfig: add a compiler speed optimization
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>
2018-06-18 09:05:02 -04:00
..
generated cmake: Support UTF-8 characters in Kconfig values 2018-03-21 19:11:19 -04:00
CMakeLists.txt subsys: stats - Statistics support 2018-02-20 22:07:52 +01:00
Kconfig kconfig: add a compiler speed optimization 2018-06-18 09:05:02 -04:00
empty_file.c Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
printk.c syscalls: remove policy from handler checks 2018-05-17 23:34:03 +03:00
reboot.c
stats.c subsys: stats - Statistics support 2018-02-20 22:07:52 +01:00