IBM Support

How to utilize Static Memory Allocation in IBM Rational Rhapsody

Technote (FAQ)


How do you utilize the Static Memory Allocation functionality in IBM Rational Rhapsody?


The number of class or event instances is controlled by a static memory pool that will not allocate additional memory resources beyond the number specified in either of these properties.


The Static Memory Allocation for Real-time Operating System or processor targeting is used by setting either the CPP_CG::Class:BaseNumberOfInstances or CG::Event::BaseNumberOfInstances. These can also be set simultaneously if desired.

Note: If the property CPP_CG::Class::AdditionalNumberOfInstances or CG::Event::AdditionalNumberOfInstances is used, this will override the Static Memory properties and immediately activates dynamic memory allocation by allocating additional memory. This is done according to the number of instances specified in this property. It should not be used if intention is to use only Static Memory Allocation.

Similar properties are also used in the Rhapsody in C - edition.

Related information

Rhapsody Static Memory Property Reference

Document information

More support for: Rational Rhapsody
General Information

Software version: 7.5.2

Operating system(s): Windows

Reference #: 1461528

Modified date: 25 April 2014