Unwanted Simulink Embedded Coder Integer Overflow Code

6 views (last 30 days)
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?

Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!