Simulink generated code optimization – CPU Load
Hi all,
I’m successfully generating code from the Simulink model. This code substitute manual one with the same function. Code is the integrated with the rest of the manual code, flashed to the HW and running. This substituting of the manual code part with the generated one increses the CPU Load. When I’m checking the Code generation setting, basic targets are RAM minimazing or Execution speed mazimazing. Non of these will directly reduce the CPU Load I suppose.
So I’d like to ask you, do you know what Advanced or Detailed Code generation Optimization setting can reduce the CPU Load? I’m attaching screenshots of the current setting.
And possibly follow up question – is there any metric which can estimate affect on the CPU Load without need of flashing the integrated code to the HW?
Thank you for your help in advance, have a nice day!
OldrichHi all,
I’m successfully generating code from the Simulink model. This code substitute manual one with the same function. Code is the integrated with the rest of the manual code, flashed to the HW and running. This substituting of the manual code part with the generated one increses the CPU Load. When I’m checking the Code generation setting, basic targets are RAM minimazing or Execution speed mazimazing. Non of these will directly reduce the CPU Load I suppose.
So I’d like to ask you, do you know what Advanced or Detailed Code generation Optimization setting can reduce the CPU Load? I’m attaching screenshots of the current setting.
And possibly follow up question – is there any metric which can estimate affect on the CPU Load without need of flashing the integrated code to the HW?
Thank you for your help in advance, have a nice day!
Oldrich Hi all,
I’m successfully generating code from the Simulink model. This code substitute manual one with the same function. Code is the integrated with the rest of the manual code, flashed to the HW and running. This substituting of the manual code part with the generated one increses the CPU Load. When I’m checking the Code generation setting, basic targets are RAM minimazing or Execution speed mazimazing. Non of these will directly reduce the CPU Load I suppose.
So I’d like to ask you, do you know what Advanced or Detailed Code generation Optimization setting can reduce the CPU Load? I’m attaching screenshots of the current setting.
And possibly follow up question – is there any metric which can estimate affect on the CPU Load without need of flashing the integrated code to the HW?
Thank you for your help in advance, have a nice day!
Oldrich embedded coder MATLAB Answers — New Questions