Control Compiler Optimizations - MATLAB & Simulink (original) (raw)

Main Content

To control compiler optimizations for a makefile build at the GUI level, use the Compiler optimization level parameter. TheCompiler optimization level parameter provides

The default setting is Optimizations off (faster builds). Selecting the valueCustom enables the Custom compiler optimization flags field, in which you can enter custom compiler optimization flags (for example,-O2).

If you specify compiler options for your makefile build usingOPT_OPTS, MEX_OPTS (exceptMEX_OPTS="-v"), orMEX_OPT_FILE, the value of Compiler optimization level is ignored and a warning is issued about the ignored parameter.

For a rapid simulation that uses the MinGW® compiler:

See Also

Topics