SPARK for the MISRA-C Developer 2025-04

A technical guide comparing SPARK technology with MISRA-C rules to demonstrate how SPARK achieves higher code quality standards.


SPARK for the MISRA-C Developer 2025-04 - cover page
Brand
AdaCore
Category
Other software
Document type
Other
Language
English
Pages
77
File format
PDF
File size
481 KB
Published
12 November, 2026
Updated
12 November, 2026
MD5 checksum
1F5AA0FD4E04779CB113167099D03591

About this manual

This document presents the SPARK technology, which is a subset of the Ada programming language supported by static analysis tools. It uses an example-driven approach to compare SPARK's capabilities against the rules of the widely known MISRA-C subset of the C language.

The guide illustrates how SPARK enforces basic program consistency, syntactic guarantees, strong typing, data initialization, and control over side effects. It highlights SPARK's ability to detect undefined behavior and unreachable code, offering guarantees that go beyond what is feasible with standard MISRA-C checkers.

What's inside

  • Preface
  • Enforcing Basic Program Consistency
  • Enforcing Basic Syntactic Guarantees
  • Enforcing Strong Typing
  • Initializing Data Before Use
  • Controlling Side Effects
  • Detecting Undefined Behavior
  • Detecting Unreachable Code and Dead Code
  • Conclusion
  • References
Download PDF (481 KB)