The operational performance of projects compiled by S32DS keil IAR

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

The operational performance of projects compiled by S32DS keil IAR

跳至解决方案
412 次查看
zhangchun
Contributor III

I am optimizing an electrical engineering project and currently using S32DS for development. After optimization, the logic of the motor control part requires 30us, which cannot meet my needs.

I would like to know if using keil or IAR can improve code performance? Because I saw someone using Keil to compile results that looked a lot better from the perspective of occupied memory space

https://mp.weixin.qq.com/s?__biz=MzI0MDk0ODcxMw==&mid=2247485570&idx=1&sn=0523356c29468baed0abeffea8...

zhangchun_0-1692283357166.png

 

标记 (1)
0 项奖励
1 解答
369 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

it's hard to answer if the using IAR or Keil can fix your issue - you need to test it by yourself. It is possible than Keil or IAR will be better than GNU gcc (which is free open source tool).  

 

Best way - especially in such time critical parts like motor control - is manual optimization of your code and find the way how to write it better. 

在原帖中查看解决方案

0 项奖励
2 回复数
370 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

it's hard to answer if the using IAR or Keil can fix your issue - you need to test it by yourself. It is possible than Keil or IAR will be better than GNU gcc (which is free open source tool).  

 

Best way - especially in such time critical parts like motor control - is manual optimization of your code and find the way how to write it better. 

0 项奖励
365 次查看
zhangchun
Contributor III
Thank you for your reply

After experiments, the performance of the same code running on keil did not improve,

Thank you for your big suggestion. I will manually optimize the code later on
0 项奖励