How to know what has been optimized

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to know what has been optimized

724 Views
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 Kudos
1 Reply

654 Views
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 Kudos