Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop Embedded Coder   

Memory Section Settings

Memory sections allow you to specify storage directives for a data object. As shown in Parameter and Signal Property Values, the possible values for the Memory section property of a parameter or signal object are Default, MemConst, MemVolatile or MemConstVolatile.

If you specify a filename for Definition file, and select Default, MemConst, MemVolatile or MemConstVolatile for the Memory section property, the Real-Time Workshop Embedded Coder software generates a .c file and an .h file. The .c file contains the definition for the data object with the pragma statement or qualifier associated with the Memory section selection. The .h file contains the declaration for the data object. The .h file can be included, using the preprocessor directive #include, in any file that needs to reference the data object.

You can add more memory sections. For more information, see Designing Custom Storage Classes and Memory Sections and Inserting Comments and Pragmas in Generated Code.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS