ibm Rational Rhapsody 7.5 — Support for Static Architectures

Support for Static Architectures Support for Static Architectures Static architectures are often used in hard real-time and safety-critical applications with memory constraints. Rational Rhapsody provides support for applications without memory management and those in which non-determinism and memory fragmentation would create problems by completely avoiding the use of the general memory management (or heap) facility during execution (after initialization). This is a typical requirement of safety-critical systems. Rational Rhapsody can avoid the use of the general heap facility by creating special allocators, or local heaps, for designated classes.

The local heap is a preallocated, continuous, bounded chunk of memory that has the capacity to hold a user-defined number of objects. Allocation of local heaps is done via a safe and simple algorithm. Use of local heaps is particularly important for events and triggered operations. Rational Rhapsody applications implicitly and explicitly result in dynamic memory operations in the following cases:

Љ Event generation (implicit) means optionally resolved via local heap Љ Addition of relations means resolved by implementing with static arrays (dynamic containers remain dynamic) Љ Explicit creation of application objects via the new operator means resolved via local heap if the application indeed dynamically creates objects You can specify whether local heaps apply to all or only some classes, triggered operations, events, and thread event queues. Rational Rhapsody 959