Whenever you're ready, walk me through how you'd approach this.
How do you balance memory constraints and performance requirements in resource-constrained embedded systems? Discuss how you would identify the limiting resource, choose between static allocation, dynamic allocation, buffering, compression, and computation, and validate that the design meets timing and memory limits. Keep the answer focused on embedded C or C++ systems with finite SRAM, flash, CPU time, and energy budgets.