Main Content
Static memory allocation
Dynamic or static memory allocation for external mode communication
Model Configuration Pane: Code Generation / Interface
Description
The Static memory allocation parameter specifies whether the code generator applies dynamic or static memory allocation for buffers used in external mode communication.
This parameter enables the Static memory buffer size parameter.
Dependency
To enable this parameter, set the Transport layer parameter to tcpip
or serial
.
Settings
Off
(default) | On
- On
Enables parameter Static memory buffer size for allocating dynamic memory.
- Off
Uses a static memory buffer for external mode simulation instead of allocating dynamic memory (calls to
malloc
).
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: ExtModeStaticAlloc |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced before R2006a
See Also
Topics
- Model Configuration Parameters: Code Generation Interface
- External Mode Simulation with TCP/IP or Serial Communication
- External Mode Simulation by Using XCP Communication
- Control Memory Allocation for Communication Buffers in Target
- Memory Allocation for Communication Buffers During XCP External Mode Simulation
- XCP Platform Abstraction Layer