How to improve the efficiency of the code genrated by simulink

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

How to improve the efficiency of the code genrated by simulink

746 Views
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 Kudos
1 Reply

535 Views
dumitru-daniel_
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 Kudos