Автор: Michael Barr
Издательство: Barr Group
Год: 2018
Язык: английский
Формат: pdf (true), djvu
Размер: 14.5 MB
Barr Group's Embedded C Coding Standard was developed to help firmware engineers minimize defects in embedded systems. Unlike the majority of coding standards, this standard focuses on practical rules that keep bugs out - including techniques designed to improve the maintainability and portability of embedded software. The rules in this coding standard include a set of guiding principles, as well as specific naming conventions and other rules for the use of data types, functions, preprocessor macros, variables, and other C language constructs. Individual rules that have been demonstrated to reduce or eliminate certain types of defects are highlighted. The BARR-C standard is distinct from, yet compatible with, the MISRA C Guidelines for Use of the C Language in Critical Systems. Programmers can easily combine rules from the two standards as needed.
Though the title of this book only explicitly includes the C language, embedded programmers working in C++ (or a mix of the two languages) are also able to reduce the number of defects in their programs by following the rules herein. This is because the syntax of C++ follows closely from C and many lines of C++ source code rely only on C syntax. It is important to note, however, that C++ is a substantially larger and more complex language than C and contains a number of features that have no equivalent in C.
Скачать Embedded C Coding Standard