WIPIVERSE All articles

Ravenscar profile

The Ravenscar profile is a restricted subset of the Ada programming language’s tasking and synchronization features, defined for use in high‑integrity, safety‑critical, real‑time systems. It is specified in Annex D of the Ada 2005 language reference manual and has been retained in later revisions (Ada 2012, Ada 2022).

Purpose and Design Goals
The profile limits Ada’s concurrency facilities to a deterministic subset that can be efficiently implemented on real‑time operating systems (RTOS) with predictable timing behavior. Its primary objectives are:

  • Deterministic Scheduling – ensures that task activation and rendezvous behavior can be analyzed for worst‑case execution time.
  • Implementation Simplicity – reduces the burden on RTOS kernels, allowing certification to standards such as DO‑178C (Level A) and IEC 61508.
  • Predictable Resource Usage – forbids constructs that may cause unbounded memory allocation or unbounded priority inversion.

Key Restrictions

Feature Constraint in Ravenscar
Task creation All tasks must be declared statically; dynamic task creation is prohibited.
Synchronization Only protected objects and entries are allowed; abortable rendezvous and selective waits are excluded.
Timing The delay statement may be used, but delay until must involve a bounded time.
Priority Fixed priority scheduling is required; priority inheritance mechanisms are not permitted.
Dynamic allocation No dynamic memory allocation for task‑related structures; allocation must be static or bounded.
Asynchronous transfer of control Disallowed (e.g., abort statement).
Nested protected objects Nested protected objects are forbidden to avoid complex lock hierarchies.

Historical Background

The profile was developed in the late 1990s by a working group of the Ada community, convened in Ravenscar, a village on the coast of North Yorkshire, England. The name reflects the location of the meetings where the subset was defined. Initial proposals appeared in the Ada-Europe 1996 conference proceedings, and the profile was incorporated into the Ada language standard with the Ada 2005 revision.

Adoption and Tool Support

Many safety‑critical domains—aviation, aerospace, automotive, and medical devices—have adopted the Ravenscar profile. Major Ada compilers (e.g., GNAT, Green Hills Software, and AdaCore’s GNAT Pro) provide language options or switches to enforce Ravenscar compliance, generating diagnostics when prohibited constructs are used. Some RTOS vendors (such as Wind River VxWorks and Green Hills INTEGRITY) offer native Ravenscar‑compatible tasking kernels.

Related Profiles

  • Ravenscar SFP (Simple Functional Profile) – A further simplification introduced in Ada 2012, removing protected entries and retaining only protected procedures and functions, thereby easing formal verification.
  • Ada Concurrency Profile (ACP) – A broader, less restrictive profile also defined in Annex D, intended for less stringent real‑time applications.

Standard References

  • ISO/IEC 8652:2007 (Ada 2005) – Annex D: “Ravenscar Profile”.
  • ISO/IEC 8652:2012 (Ada 2012) – Amendment to Annex D, includes SFP.
  • AdaCore. GNAT Reference Manual, sections on “–gnatR” (Ravenscar enforcement).

Typical Use Cases

  1. Avionics Flight Control Software – compliance with DO‑178C Level A often mandates Ravenscar to guarantee timing determinism.
  2. Satellite On‑Board Data Handling – the profile supports predictable execution on constrained hardware without dynamic memory fragmentation.
  3. Medical Device Controllers – certification under IEC 62304 benefits from the static analysis friendliness of Ravenscar.

The Ravenscar profile remains a widely recognized and documented approach for implementing reliable, deterministic concurrency in Ada‑based safety‑critical systems.

Browse

More topics to explore

    Browse all articles