How to know what has been optimized

cancel
Showing results for 
Search instead for 
Did you mean: 

How to know what has been optimized

152 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

82 Views
converse
Senior Contributor IV

This describes the optimisation levels

Using the GNU Compiler Collection (GCC): Optimize Options 

(Also available in the docs supplied with MCUXpresso)

0 Kudos