How to know what has been optimized

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to know what has been optimized

741 次查看
da_chen
Contributor II

I wrote a program using MCUXpresso.

I found my code performs quite differently in different optimization settings. Is there any way to know what has been optimized while compiling the program? 

Environment:

IDE: MCUXpresso 10.3.1

Compiler: arm-none-eabi-gcc

0 项奖励
1 回复

671 次查看
converse
Senior Contributor V

This describes the optimisation levels

Using the GNU Compiler Collection (GCC): Optimize Options 

(Also available in the docs supplied with MCUXpresso)

0 项奖励