How to improve the efficiency of the code genrated by simulink

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to improve the efficiency of the code genrated by simulink

1,327件の閲覧回数
ppap
Contributor I

Hi:

   Recently I am using the chip 5744p with MBDT. Limited by interrupt interval, I can not perform a particularly large number of functions in the interrupt function.

    I want to know, for simulink code generation, is there any way to improve the execute efficiency of the genrated code, that is, speed it up? 

0 件の賞賛
返信
1 返信

1,116件の閲覧回数
Daniel_Popa
NXP Employee
NXP Employee

Hi ppap‌,

There are 3 approaches:

#1: enable optimizations from Simulink code generation:

 pastedImage_1.png

#2: enable optimization in Target Compiler

pastedImage_2.png

#3: re-design the Simulink model to remove unnecessary conversion/blocks etc: Something like this: https://community.nxp.com/message/902741#comment-902849 

Hope this helps!

Daniel

0 件の賞賛
返信