Home >

Writing Stack-Only C/C++ Libraries

Michael Bardwell - EOC 2025

Writing Stack-Only C/C++ Libraries
Michael Bardwell

In embedded systems, particularly in reliability-demanding environments like space, deterministic programming is crucial. A key aspect of this is avoiding dynamic memory allocation, especially on memory-constrained devices. This talk will explore the challenges and strategies for developing portable C++ libraries that operate solely on the stack.

We will emphasize the importance of stack-only programming in ensuring predictability and reliability in systems where memory management failures can lead to catastrophic outcomes. Attendees will learn techniques for managing constraints and implementing design patterns specifically tailored for stack usage.

Additionally, we will highlight practical examples and case studies, demonstrating how to leverage C++ features, such as type safety, encapsulation, and templates, to create robust libraries suited for resource-constrained environments. By the end of the session, participants will gain the tools and knowledge necessary to write efficient, reliable, stack-only C++ libraries that excel in the most demanding embedded contexts.

M↓ MARKDOWN HELP
italicssurround text with
*asterisks*
boldsurround text with
**two asterisks**
hyperlink
[hyperlink](https://example.com)
or just a bare URL
code
surround text with
`backticks`
strikethroughsurround text with
~~two tilde characters~~
quote
prefix with
>

No comments or questions yet. Will you be the one who will break the ice?

OUR SPONSORS

OUR PARTNERS