S32DS set -O2(optimize more) to the C/C++ compiler, as compared to -O(none optimize)

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

S32DS set -O2(optimize more) to the C/C++ compiler, as compared to -O(none optimize)

777 Views
王标王
Contributor I

Hi,  NXP experts 

On the optimization page, we change to O2 setting options. What will be optimized and what problems may be caused by this optimization, and could you please give me one or two examples to help explain the differences between -O2 and -O0.

Here is the options picture, thanks.

_0-1648699108886.png

 

0 Kudos
1 Reply

460 Views
mikedoidge
NXP Employee
NXP Employee

Hello @王标王 ,

Probably you will find this article useful to answer your question.

https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Optimize-Options.html

Best Regards,

Mike

0 Kudos