MEX Configuration Dialog Box Options
MEX Configuration Dialog Box Options
The following table describes parameters for fine-tuning the behavior of
fiaccel for converting MATLAB® files to MEX:
| Parameter | Equivalent Command-Line Property and
Values (default in bold) | Description |
|---|---|---|
| Report | ||
| Create code generation report | GenerateReporttrue,
false | Document generated code in a report. |
| Launch report automatically | LaunchReporttrue,
false | Specify whether to automatically open report after code generation completes. Note Requires that you enable Create code generation report |
| Debugging | ||
| Echo expressions without semicolons | EchoExpressionstrue, false | Specify whether or not actions that do not terminate with a semicolon appear in the MATLAB Command Window. |
| Enable debug build | EnableDebuggingtrue,
false | Compile the generated code in debug mode. |
| Language and Semantics | ||
| Constant Folding Timeout | ConstantFoldingTimeoutinteger,
10000 | Specify the maximum number of instructions to be executed by the constant folder. |
| Dynamic memory allocation | DynamicMemoryAllocation'off',
'AllVariableSizeArrays' | Enable dynamic memory allocation for variable-size data. By default,
dynamic memory allocation is disabled and You must use dynamic memory allocation for all unbounded variable-size data. |
| Enable variable sizing | EnableVariableSizingtrue, false | Enable support for variable-size arrays. |
| Extrinsic calls | ExtrinsicCallstrue, false | Allow calls to extrinsic functions. When enabled
( When disabled ( |
| Global Data Synchronization Mode | GlobalDataSyncMethodstring,SyncAlways,
SyncAtEntryAndExits, NoSync | Controls when global data is synchronized with the MATLAB global workspace. By default, (
|
| Saturate on integer overflow | SaturateOnIntegerOverflowtrue, false | Add checks in the generated code to detect integer overflow or underflow. |
| Safety (disable for faster MEX) | ||
| Ensure memory integrity | IntegrityCheckstrue, false | Detects violations of memory integrity while building MATLAB Function blocks and stops simulation with a diagnostic message. Setting
IntegrityChecks to false also disables the
run-time stack. |
| Ensure responsiveness | ResponsivenessCheckstrue, false | Enables responsiveness checks in code generated from MATLAB algorithms. |
| Function Inlining and Stack Allocation | ||
| Inline Stack Limit | InlineStackLimitinteger,
4000 | Specify the stack size limit on inlined functions. |
| Inline Threshold | InlineThresholdinteger,
10 | Specify the maximum size of functions to be inlined. |
| Inline Threshold Max | InlineThresholdMaxinteger,
200 | Specify the maximum size of functions after inlining. |
| Stack Usage Max | StackUsageMaxinteger,
200000 | Specify the maximum stack usage per application in bytes. Set a limit that is
lower than the available stack size. Otherwise, a runtime stack overflow might occur.
Overflows are detected and reported by the C compiler, not by
fiaccel. |
| Optimizations | ||
| Use BLAS library if possible | EnableBLAStrue, false | Speed up low-level matrix operations during simulation by calling the Basic Linear Algebra Subprograms (BLAS) library. |