Memory Footprint Budget

Keep firmware inside flash and RAM with headroom for the next update: treat the linker map as the source of truth, diff per-section and per-module sizes against main on every pull request and fail at a budget of about 85 to 90 per cent, derive worst-case stack depth per task from -fstack-usage and the call graph plus one exception frame per task and nested ISR frames on the main stack, then confirm by stack painting in a soak test, ban allocation after init or use fixed-block pools, and shrink in measured order (dead features, section garbage collection, size flags, nano printf, const placement, asset compression). Use for "flash is 97 per cent full", "out of RAM", "stack overflow in a task", "how big should the stacks be", "add a size gate to CI". Not for CPU time (profiling), correctness review (firmware-code-review), a stack overflow that already faulted (hard-fault-triage).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit dc402aa7c2

Frequently asked questions

npx get-skill add greenblacked/memory-footprint-budget