DEV Community

NCMV
NCMV

Posted on

CASTLE 2.0 is released

Continue from the development of CASTLE library version 1.0: https://dev.to/nguyenchiemminhvu/castle-a-modern-c-template-library-for-safety-critical-embedded-systems-5hjk

I would like to introduce about prototype version 2.0:

GitHub logo nguyenchiemminhvu / castle

Compliant Automotive Safety Template Library for Embedded

CASTLE

Compliant Automotive Safety Template Library for Embedded

Prototype version 2.0

CASTLE is a lightweight, header-only CPP17-based template library built for safety-critical embedded systems where every byte of RAM, every millisecond of jitter, and every allocation counts. It is inspired by the ETL (Embedded Template Library) and is intended as a drop-in replacement for parts of the C++ standard library and common enterprise frameworks that are otherwise unsuitable for automotive ECUs MCUs, and other resource-constrained targets.

The main idea is simple: make common C++ jobs easier without bringing the runtime costs that are often unwanted on small targets.

CASTLE 2.0 focuses on:

  • deterministic, fixed-capacity behavior where practical
  • no mandatory heap allocation
  • no mandatory RTTI
  • no mandatory exceptions
  • no virtual functions in the core data structures
  • no dependency on the C++ STL
  • C++17 and lower language levels
  • GCC, Clang, and ARM compiler families

CASTLE is a good fit for firmware, device…

Top comments (0)