选择这三个选项,其中有一个选项要注意:
Cross-Module Optimization
Cross-Module Optimization takes information from a prior build and uses it to place UNUSED functions into their own ELF section in the corresponding object file. This option is also known as Linker Feedback, and requires you to build your application twice to take advantage of it for reduced code size.
Cross-Module Optimization has been shown to reduce code size, by removing unused functions from your application. It can also improve the performance of your application, by allowing modules to share inline code.
这里提到要编译两次才能使用这个优化设置。
我不选择这个优化,生成HEX是固定的,但是大了好多。