Right, sorry. This optimization level was only recently added on master branch of IDF, it's not in any stable release version yet.Baldhead wrote: ↑Tue Dec 10, 2019 12:53 am"Built with default config (ie default compiler optimisation level which is -Os, if you want max performance then set this to Performance)."
Where i can change to "The “Performance” setting will add the -O2 flag to CFLAGS".
In menuconfig -> compiler options -> Optimization Level -> Debug (-Og) or Release (-Os) options only.
Configuring for Release/-Os is almost as good and may be even better in some situations where smaller code size helps with flash cache utilization. The default on master is actually -Og not -Os, I wrote the wrong thing in my post - will fix.
No... As long as your C code doesn't invoke C language Undefined Behaviour, everything should function the same regardless of optimisation level.