17
Libraries and Frameworks
While the C++ standard library offers a vast array of containers and algorithms, certain aspects – such as dynamic memory allocation – can pose challenges in constrained environments. In Chapter 2, we explored some of these issues and ways to address them. However, specialized libraries, like the Embedded Template Library (ETL), offer deterministic behavior and fixed memory footprints, making them well suited for embedded systems.
Embedded applications depend on Hardware Abstraction Layers (HALs) provided by vendors as C libraries. In Chapter 12, we examined how to use interfaces to decouple application-level C++ code from the underlying C-based hardware interactions. Wrapping entire HALs in C++ is a lot of work, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access