IBM Support

How to utilize Static Memory Allocation in IBM Rational Rhapsody

Question & Answer


Question

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

Cause

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.

Answer

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.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5.2","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21461528