Whenever you're ready, walk me through how you'd approach this.
Discuss memory management strategies in C++ when working with resource-constrained embedded systems.
Cover stack versus static storage, dynamic allocation, ownership, fragmentation, object lifetime, and techniques for making memory usage predictable. Include one concrete example and explain the trade-offs between alternatives.