zephyr/cmake/compiler/gcc
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
..
compiler_flags.cmake cmake: kconfig: Add new abstraction for -Oz optimization level 2024-06-14 19:05:50 -04:00
generic.cmake cmake/compiler/: drop ERROR_QUIET when looking for compiler --version 2023-12-04 16:38:08 +00:00
target_arc.cmake hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
target_arm64.cmake
target_arm.cmake cmake: Reuse llext flags for EDK 2024-05-17 16:21:48 +01:00
target_mips.cmake
target_riscv.cmake
target_sparc.cmake
target_x86.cmake
target_xtensa.cmake llext: use CMake shared library support on Xtensa 2024-04-08 09:04:32 +02:00
target.cmake llext: move all flags to compiler specific cmake files 2024-01-21 10:59:49 +01:00