| Embedded MATLAB™ | ![]() |
| On this page… |
|---|
Specifies parameters for fine-tuning the behavior of the compiler.

To display the Compiler Options dialog box, follow these steps at the MATLAB command prompt:
Define a configuration object variable for compiler options in the MATLAB workspace by issuing a constructor command like this:
co_cfg=emlcoder.CompilerOptions;
Open the property dialog box using one of these methods:
Double-click the configuration object variable in the MATLAB workspace
Issue the open command from the MATLAB prompt, passing it the configuration object variable, as in this example:
open co_cfg;
The dialog box displays on your desktop.
The following table describes the parameters for fine-tuning the behavior of the compiler for converting M-files to C-MEX or embeddable C code:
| Parameter | Equivalent
Command-Line Property and Values (default in bold) | Description |
|---|---|---|
| Inline Threshold | InlineThreshold integer, 10 | Specify the maximum size of functions to be inlined. |
| Inline Threshold Max | InlineThresholdMax integer, 200 | Specify the maximum size of functions after inlining. |
| Inline Stack Limit | InlineStackLimit integer, 4000 | Specify the stack size limit on inlined functions. |
| Stack Usage Max | StackUsageMax integer, 200000 | Specify the maximum stack usage per function. |
| Constant Folding Timeout | ConstantFoldingTimeout integer, 10000 | Specify the maximum number of instructions to be executed by the constant folder. |
| Saturate on integer overflow | SaturateOnIntegerOverflow true, false | Add checks in the generated code to detect integer overflow or underflow. |
![]() | Using M-Lint with Embedded MATLAB Code | Working with Embedded MATLAB MEX | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |