| Real-Time Workshop® Embedded Coder™ | ![]() |
| On this page… |
|---|
The Real-Time Workshop Embedded Coder software provides a memory section capability that allows you to insert comments and pragmas into the 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
Real-Time Workshop data structures and storage classes:
Working with Data in the Real-Time Workshop documentation
Real-Time Workshop Embedded Coder custom storage classes:
Custom Storage Classes in the Real-Time Workshop Embedded Coder documentation
Fine-tuned optimization of generated code for functions or data:
The Real-Time Workshop Target Language Compiler documentation
![]() | Memory Sections | Requirements for Defining Memory Sections | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |