CASTLE: Open-Source C++17 Template Library Targets Safety-Critical Embedded Systems
A developer has released CASTLE (Common Automotive Safety-critical Template Library for Embedded engineers), an open-source, header-only C++17 library designed for automotive and safety-critical embedded systems. The library enforces strict embedded-friendly constraints, including no heap allocation, no exceptions or RTTI, and fixed-capacity statically bounded data structures to ensure predictable behavior. Currently in prototype stage, CASTLE includes utilities such as fixed-capacity buffers, event and signal dispatching, timers, safe numeric casts, and bit utilities. It draws inspiration from the Embedded Template Library (ETL) but aims for a more modern C++ style with more expressive APIs. The developer is seeking community feedback from embedded, automotive, and safety-critical software engineers, with planned additions including finite state machines, protocol I/O, and CRC algorithms.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in