Unwanted Simulink Embedded Coder Integer Overflow Code

6 visualizaciones (últimos 30 días)
Henry O'Keeffe
Henry O'Keeffe el 9 de Mzo. de 2019
Embedded Coder (in this case for the TI C2000 series) generates extensive code to prevent overflow of integers (or fixed point tata types held in integers) that involves using an integer twice as large as the one specified in Simulink (which maybe larger than a microcontroller supports, so is handled inefficiently using an array) to hold a temporary variable that is checked to see if it would overflow before being cast into the specified size. In many applications this is unneccesary, is there a way to disable overflow protection (both wrap on overflow and saturate on overflow) for generated code?

Respuestas (0)

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by