SPRUJG0C December 2024 – October 2026 F29H850DM , F29H850TU , F29H859TU-Q1 , F29P329SM-Q1 , F29P589DM-Q1 , F29P589DU-Q1
Performance needs to be optimized with code generation tools like Mathworks Embedded Coder which has specific suggested toolchain options.
Depending on the configuration settings, auto-generated code can have double-precision floating point operations and these can lead to significant deterioration of performance when running on floating-point hardware that supports only single-precision floating point operations.
It is also advised that users look for the following in the generated code:
Auto-generated code typically has calls to several RTS library functions. As indicated in the Intrinsics section, the compiler generates optimized instructions for many of these functions. For expf() and its related functions, intrinsics must be leveraged.
Auto-generated code typically also contains functions that serve as building blocks or helper functions and are called several times by the software application. It is useful to analyze these functions as optimizations that result in better performance might exist (for example, rt_roundd(), rt_modf(), rt_delta_theta()).