Compile with GCC -ffast-math
Enables the GCC compiler -ffast-math
option when compiling
real-time application code
Since R2020b
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
UseGCCFastMath
is disabled, Simulink Real-Time compiles real-time application code without the compiler-ffast-math
option.-
on
When
UseGCCFastMath
is enabled, Simulink Real-Time compiles real-time application code with the compiler-ffast-math
option.
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