| Contents | Index |
| On this page… |
|---|
The Embedded Coder software provides a memory section capability that allows you to insert comments and pragmas and qualify constants as volatile in generated code for
Data in custom storage classes
Model-level functions
Model-level internal data
Subsystem functions
Subsystem internal data
Pragmas inserted into generated code can surround
A contiguous block of function or data definitions
Each function or data definition separately
When pragmas surround each function or data definition separately, the text of each pragma can contain the name of the definition to which it applies.
To see a demo of memory sections, type rtwdemo_memsec in the MATLAB Command Window.
See the following for additional information relating to memory sections:
Simulink data types, packages, data classes, and data objects — Working with Data in the Simulink documentation
Simulink Coder data structures and storage classes — Data, Function, and File Definition in the Simulink Coder documentation
Fine-tuned optimization of generated code for functions or data — Simulink Coder Target Language Compiler documentation
![]() | Memory Sections | Requirements for Defining Memory Sections | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |