Main Content

Compile with GCC -ffast-math

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.

Settings

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.

Command-Line Information

Type: character vector
Value: 'off' | 'on'
Default: 'off'