Unwanted Simulink Embedded Coder Integer Overflow Code
6 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!