Svashasan Logo
Simulated data

Automotive Standards and Regulations · Coding standard

MISRA C

Also known as MISRA C:2025, MISRA C:2023, MISRA C:2012, MISRA-C, MISRA C guidelines

IntermediateSource-checked · awaiting technical reviewLast reviewed 6 December 2026

Coding guidelines that define a safer subset of the C language for critical embedded systems, widely used for automotive ECU software and largely checked with static-analysis tools. Current edition: MISRA C:2025 (March 2025), supporting C11/C18 and earlier C versions.

Explanation

MISRA C was first published in 1998 to support the language requirements of the 1994 MISRA guidelines for vehicle software, and it has since been adopted in rail, aerospace, defence and medical systems. Later editions are MISRA C:2004, MISRA C:2012 (which added C99 and was later consolidated with Amendment 1 and a technical corrigendum), MISRA C:2023 (which extended support to C11 and C18) and MISRA C:2025, an incremental update.

The guidelines restrict language features whose behaviour is undefined, unspecified or implementation-defined, constructs that are error-prone, and practices that make code hard to analyse. Many rules can be checked automatically by static analysers; others need manual review. Projects record justified deviations where a rule cannot be followed.

MISRA compliance describes properties of code and its documented deviations; it is not proof of correctness or safety. Static analysers differ in coverage, so a compliance claim should state the edition, the tools used and the deviation records.

How it works

A project adopts a MISRA C edition in its coding standard, configures static analysers to check the rules on every build, reviews the aspects that tools cannot decide, and records justified deviations. A compliance summary then shows how each guideline is enforced and its status, which suppliers can hand to customers.

Automotive applications

  • Application and basic software in C for ECUs
  • Bootloaders, drivers and RTOS code
  • Acceptance criteria for supplier code
  • Static-analysis gates in continuous integration

Example

A body-control ECU team configures its static analyser for MISRA C:2025, blocks merges that introduce new violations of required rules, and records a justified deviation where a hardware register must be accessed through a cast from an integer address.

An illustrative example: any figures in it are worked numbers, not measurements.

Standard details

Standard
MISRA C (guidelines for the use of the C language in critical systems)
Edition
MISRA C:2025 (published March 2025)
Publication status
Published; current edition
Scope
Coding guidelines defining a subset of C (C90, C99, C11 and C18) for critical embedded systems.
How this was checked
Read from misra.org.uk/misra-c (fetched), which lists MISRA C:2025 (March 2025) as an incremental update that maintains support for C11, C18 and earlier versions, alongside MISRA C:2023 (April 2023), MISRA C:2012 and MISRA C:2004.

References

  1. MISRA C (opens in a new tab)

    MISRA · Specification · Edition history (MISRA C:2025, C:2023, C:2012, C:2004) · retrieved 6 December 2026

Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.