Code Efficiency Tradeoffs
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.
To get started, see Design Techniques to Optimize Models for Efficient Code Generation.
Topics
- Subnormal Number Execution SpeedMinimize the possibility of execution slowdowns or overruns due to subnormal number calculation latency. 
- Remove Code for Out-of-Range Floating Point to Integer ConversionsIf the input values in your application are in the range of the output type, remove code for out-of-range floating-point to integer conversions. 
- Remove Code That Maps NaN to Integer ZeroIf input values of NaNdo not exist in your application, specify that the code generator remove code that mapsNaNto integer zero.
- Disable Nonfinite Checks or Inlining for Math FunctionsUse code replacement library (CRL) customization entries to selectively disable nonfinite checks for math functions and inlining of math functions.