SPARK Ada for the MISRA C Developer
This book presents the SPARK technology — the SPARK subset of Ada and its supporting static analysis tools — through an example-driven comparison with the rules in the widely known MISRA C subset of the C language.
This document was prepared by Yannick Moy, with contributions and review from Ben Brosgol.
Note
The code examples in this course use an 80-column limit, which is a typical limit for Ada code. Note that, on devices with a small screen size, some code examples might be difficult to read.
- 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