matejm wrote: ↑
Mon Jun 03, 2019 11:58 am
Are we going to support for LTO in few months time. GCC compiler supports it on other platforms.
I am hoping it will reduce bin size by at least half.
We don't have any update about LTO, but it will not be supported in the near future. We've done some experiments, but ESP-IDF relies heavily on particular linker behaviours so this is complex to implement without breaking existing functionality in some cases.
In the experiments that we have done we didn't see anything close to 50% binary size reductions, unfortunately.