Compiler Options Dialog Box

Compiler Options Parameters Dialog Box Overview

Specifies parameters for fine-tuning the behavior of the compiler.

Displaying the Dialog Box

To display the Compiler Options dialog box, follow these steps at the MATLAB command prompt:

  1. Define a configuration object variable for compiler options in the MATLAB workspace by issuing a constructor command like this:

    co_cfg=emlcoder.CompilerOptions;
  2. Open the property dialog box using one of these methods:

    The dialog box displays on your desktop.

Compiler Options Parameters

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:

ParameterEquivalent Command-Line Property and Values
(default in bold)
Description
Inline ThresholdInlineThreshold
integer, 10
Specify the maximum size of functions to be inlined.
Inline Threshold MaxInlineThresholdMax
integer, 200
Specify the maximum size of functions after inlining.
Inline Stack LimitInlineStackLimit
integer, 4000
Specify the stack size limit on inlined functions.
Stack Usage MaxStackUsageMax
integer, 200000
Specify the maximum stack usage per function.
Constant Folding TimeoutConstantFoldingTimeout
integer, 10000
Specify the maximum number of instructions to be executed by the constant folder.
Saturate on integer overflowSaturateOnIntegerOverflow
true, false
Add checks in the generated code to detect integer overflow or underflow.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS