Unwanted Simulink Embedded Coder Integer Overflow Code
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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?
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!