zephyr/lib/libc
Jonathon Penix d6041d62b3 cmake: kconfig: Add new abstraction for -Oz optimization level
Both Clang [1] and (recently) GCC [2] support this flag to enable
additional codesize optimizations beyond -Os, possibly at the expense of
performance.

This tradeoff is worthwhile for some (and, Clang's -Oz seems to be
closer to GCC's -Os currently), so add a new abstraction for this flag
so users can select it as appropriate.

[1] https://clang.llvm.org/docs/CommandGuide/clang.html#cmdoption-O0
[2] https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-Oz

Signed-off-by: Jonathon Penix <jpenix@quicinc.com>
2024-06-14 19:05:50 -04:00
..
arcmwdt build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
armstdc lib: libc: armstdc: add missing retarget of fputc to _stdout_hook 2023-10-04 11:02:37 +02:00
common libc: minimal: Add 'noreturn' attribute to abort() and exit() 2024-05-06 17:32:17 +01:00
minimal cmake: kconfig: Add new abstraction for -Oz optimization level 2024-06-14 19:05:50 -04:00
newlib posix: move getpid() to Kconfig.procN and doc MULTI_PROCESS 2024-06-04 16:27:12 -05:00
picolibc build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
CMakeLists.txt lib: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
Kconfig posix: move getpid() to Kconfig.procN and doc MULTI_PROCESS 2024-06-04 16:27:12 -05:00