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

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

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

2,079 次查看
王标王
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-1648699108886.png

 

0 项奖励
回复
1 回复

1,762 次查看
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 项奖励
回复