pvvx wrote:cal wrote:BTW: Any reason you disabled -Os and use -O2 on your code?-Os = Big size
gcc curve compiler. GCC ESP8266 does not use a offset by reference to variable and creates a lot of downloadable constants in 'text' section. + No optimization (associations) of these constants... gcc curve compiler...
I don't know what you mean by "curve compiler" but just saying "-Os" results in big size
is wrong. Applying it to the nodemcu code base gained 15k.
I can can imagine that it depends on the type of c code you have.
Small functions may actually loose and bigger ones win.