Signal Vectorization
Article 1 of 3: “Model Optimization with emmtrix”
February 05, 2025
With our technology for mapping C code back to Simulink blocks when using code generators such as TargetLink or Embedded Coder, we have already been able to extend our emmtrix Performance Estimator to provide runtime information for the original blocks.
Building on this technology, we can now provide suggestions on how to improve the model by reducing the size of the generated code via signal vectorization.
In the simplest case, a series of assignments can be replaced by a loop if the variables are modelled as vectors. This case can often be found when the automatic loop unroll does not fit the whole project or several variables are always used together. The generated loop requires less memory and can even speed up execution if caches or special operations such as zero-overhead loops are used.
The emmtrix tools analyze the generated C code and provide reports for a guided model rewrite and optimized C code as reference.
Applied to actual production code, potential savings in code size of up to 15% can be achieved.
Stay tuned for more features of this optimization flow.
For more details, visit the emmtrix Performance Estimator or contact Rainer Heim: 📞 +49 170 447 2986, 📧 rainer.heim@emmtrix.com