Maximum stack size (bytes) - Specify maximum stack size for local variables in model - MATLAB (original) (raw)

Main Content

Specify maximum stack size for local variables in model

Model Configuration Pane: Code Generation / Optimization

Description

The Maximum stack size (bytes) parameter specifies the maximum size in bytes for local variables in the stack for your model. It does not limit the size of function arguments in the stack.

Settings

Inherit from target (default) | <Specify a value>

Inherit from target

The SimulinkĀ® Coderā„¢ software assigns the maximum stack size to the smaller value of the following:

<Specify a value>

Specify a positive integer value. Simulink Coder software assigns the maximum stack size to the specified value.

Note

If you specify a maximum stack size for a model, the estimated required stack size of a referenced model must be less than the specified maximum stack size of the parent model.

Tips

Application Setting
Debugging No impact
Traceability No impact
Efficiency No impact
Safety precaution No impact

Programmatic Use

Parameter: MaxStackSize
Type: int
Value: valid value
Default: Inherit from target

Version History

Introduced in R2010a