Skip to content

Resources for secure and standardized embedded systems programming, featuring BARR-C:2018, Google C++ Style Guide, and MISRA guidelines for C and C++.

Notifications You must be signed in to change notification settings

Mohamadkhosravi/EmbeddedStandardSecureProgramming

Repository files navigation

EmbeddedStandardSecureProgramming

Welcome to the Embedded Standard Secure Programming repository! This repository contains a collection of essential documents and style guides aimed at promoting best practices in embedded systems programming, particularly in C and C++. These documents are invaluable for developers looking to adhere to industry standards and write secure, maintainable, and efficient code.

Table of Contents

Overview

Embedded systems development often requires adherence to specific coding standards and guidelines to ensure safety, reliability, and maintainability. This repository consolidates key documents that outline these standards, particularly focusing on C and C++ languages, which are commonly used in embedded systems.

Included Documents

The following PDF documents are included in this repository:

  1. BARR-C 2018.pdf:
    A comprehensive guide to the BARR-C:2018 coding standard, which provides rules and recommendations for coding in C in a way that enhances code safety, portability, and maintainability, particularly for embedded systems.

  2. Google C++ Style Guide.pdf:
    A style guide from Google, detailing best practices for writing clear, consistent, and reliable C++ code. It covers topics like code formatting, naming conventions, and use of specific language features.

  3. MISRA-C-2004.pdf:
    The MISRA-C:2004 guidelines for the C programming language, developed by the Motor Industry Software Reliability Association (MISRA). These guidelines help in writing safe and reliable code for automotive and other critical systems.

  4. MISRA-CPP-2008.pdf:
    The MISRA C++:2008 guidelines for the C++ programming language, aimed at helping developers avoid common pitfalls and write safe, portable code in embedded systems.

  5. MISRA-C 2012.pdf:
    The updated MISRA-C:2012 guidelines, which build upon the 2004 edition, providing more comprehensive rules and guidance for writing secure and reliable C code in critical systems.

How to Use

To get started with these documents:

  1. Clone the Repository: Clone the repository to your local machine using the following command:

    git clone https://github.com/Mohamadkhosravi/EmbeddedStandardSecureProgramming.git
  2. Access the Documents: Navigate to the cloned repository directory and open the desired PDF file with any compatible PDF reader.

  3. Study and Implement: Read through the documents to understand the coding standards and style guidelines. Implement these practices in your embedded systems projects to enhance code quality and safety.

Contributing

Contributions to this repository are welcome! If you have additional resources or improvements to suggest, please feel free to fork the repository, make your changes, and submit a pull request. Please ensure that any new documents align with the repository's focus on embedded systems programming standards and practices.

License

This repository is for educational and informational purposes. Each document included in this repository may have its own license terms and conditions. Please refer to the respective documents for specific licensing information.

About

Resources for secure and standardized embedded systems programming, featuring BARR-C:2018, Google C++ Style Guide, and MISRA guidelines for C and C++.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published