BARR-C:2018 and MISRA C:2012: Synergy Between the Two Most Widely Used C Coding Standards

03/15/2020
by   Roberto Bagnara, et al.
0

The Barr Group's Embedded C Coding Standard (BARR-C:2018, which originates from the 2009 Netrino's Embedded C Coding Standard) is, for coding standards used by the embedded system industry, second only in popularity to MISRA C. However, the choice between MISRA C:2012 and BARR-C:2018 needs not be a hard decision since they are complementary in two quite different ways. On the one hand, BARR-C:2018 has removed all the incompatibilities with respect to MISRA C:2012 that were present in the previous edition (BARR-C:2013). As a result, disregarding programming style, BARR-C:2018 defines a subset of C that, while preventing a significant number of programming errors, is larger than the one defined by MISRA C:2012. On the other hand, concerning programming style, whereas MISRA C leaves this to individual organizations, BARR-C:2018 defines a programming style aimed primarily at minimizing programming errors. As a result, BARR-C:2018 can be seen as a first, dramatically useful step to C language subsetting that is suitable for all kinds of projects; critical projects can then evolve toward MISRA C:2012 compliance smoothly while maintaining the BARR-C programming style. In this paper, we introduce BARR-C:2018, we describe its relationship with MISRA C:2012, and we discuss the parallel and serial adoption of the two coding standards.

READ FULL TEXT

page 1

page 4

research
09/04/2018

The MISRA C Coding Standard and its Role in the Development and Analysis of Safety- and Security-Critical Embedded Software

The MISRA project started in 1990 with the mission of providing world-le...
research
12/28/2022

Coding Guidelines and Undecidability

The C and C++ programming languages are widely used for the implementati...
research
05/15/2020

Technologies and Workflow of Creative Coding Projects: Examples from the Google DevArt Competition

Recently, many artists and creative technologists created computer progr...
research
12/23/2021

A Rationale-Based Classification of MISRA C Guidelines

MISRA C is the most authoritative language subset for the C programming ...
research
06/14/2022

varFEM: variational formulation based programming for finite element methods in Matlab

This paper summarizes the development of varFEM, which provides a realiz...
research
12/18/2019

Comprehensive review for common types of errors using spreadsheets

Thanks to their flexibility and capability to perform different tasks an...
research
04/16/2021

Learning to Boost the Efficiency of Modern Code Review

Modern Code Review (MCR) is a standard in all kinds of organizations tha...

Please sign up or login with your details

Forgot password? Click here to reset