Contenido principal

Code Efficiency Tradeoffs

Make tradeoffs when generating optimized code

Improve the efficiency of the generated code by removing code that performs subnormal number calculations or guards against a possible mismatch between simulation and code generation results.

Model Settings

expand all

LevelOptimization level for generated code
PriorityControl application of optimizations based on priority
Remove Code from Tunable Parameter Expressions That Saturate Out-of-Range ValuesControl generation of protective code that saturates out-of-range tunable parameter expression values
Remove code that protects against division arithmetic exceptionsControl generation of protective code for division arithmetic exceptions
Remove code from floating-point to integer conversions with saturation that maps NaN to zeroControl generation of protective code that handles floating-point to integer conversion for NaN values
Remove code from floating-point to integer conversions that wraps out-of-range valuesControl generation of wrapping code that handles out-of-range floating-point to integer conversion values
Code replacement librariesLibraries that define code optimizations for specific target environment
Simulation behavior for denormal numbersOption to emulate hardware handling of denormal numbers

Topics