Compile with GCC -ffast-math
Enables the GCC compiler -ffast-math option when compiling
      real-time application code
Model Configuration Pane: Code Generation / Simulink Real-Time Options
Description
Enables the GCC compiler -ffast-math option when compiling
      real-time application code. This option is disabled by default for Simulink®
            Real-Time™ models. 
By enabling the Compile with GCC -ffast-math option, you provide the compiler with more flexibility to optimize floating-point math at the expense of deviating from the IEEE-754 floating-point standard.
For more information about the -ffast-math option, see the Semantics of Floating-Point
      Math in GCC.
Dependencies
None
Settings
off | on
      Default:
      off
    
- 
          off
- When - UseGCCFastMathis disabled, Simulink Real-Time compiles real-time application code without the compiler- -ffast-mathoption.
- 
          on
- When - UseGCCFastMathis enabled, Simulink Real-Time compiles real-time application code with the compiler- -ffast-mathoption.
Recommended Settings
| Application | Setting | 
|---|---|
| Debugging | 
 | 
| Traceability | 
 | 
| Efficiency | 
 | 
| Safety precaution | 
 | 
Programmatic Use
| Parameter: UseGCCFastMath | 
| Type: character vector | 
| Value: 'off'|'on' | 
| Default: 'off' | 
Version History
Introduced in R2020b