Control how the generated code allocates memory for model data.
Category: Code Generation > Interface
Default: off
Generates a function to dynamically allocate memory (using
malloc
) for model data structures.
Does not generate a dynamic memory allocation function. The generated code statically allocates memory for model data structures.
This parameter only appears for ERT-based targets with Code interface
packaging set to Reusable function
.
This parameter requires an Embedded Coder® license when generating code.
Parameter:
GenerateAllocFcn |
Type: character vector |
Value:
'on' | 'off' |
Default:
'off' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No recommendation |