Unwanted Simulink Embedded Coder Integer Overflow Code
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Deployment, Integration, and Supported Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!