Hi,
I've been looking at documentation of these GCC flags:
-O0
Reduce compilation time and make debugging produce the expected
results. This is the default
-Og
Optimize debugging experience. -Og enables optimizations that do
not interfere with debugging. It should be the optimization level of
choice for the standard edit-compile-debug cycle, offering a reasonable
level of optimization while maintaining fast compilation and a good
debugging experience.
(from
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html)
Currently, we use -O0 for the debug build of Python, but it seems that
-Og would actually be a better option. Is there something I'm missing?