I always have link-time-optimization enabled. The only effect the -DLINK_TIME_OPTIMIZATION flag has on the esp8266 is to make the ALWAYS_INLINE macro do something. I think overall I'm pretty happy with the -Os I have now. Maybe there are some better combos, but I suspect that any code size increase makes things worse...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I always have link-time-optimization enabled. The only effect the -DLINK_TIME_OPTIMIZATION flag has on the esp8266 is to make the ALWAYS_INLINE macro do something. I think overall I'm pretty happy with the -Os I have now. Maybe there are some better combos, but I suspect that any code size increase makes things worse...