4K stacks: some issues remain
Posted May 25, 2004 22:57 UTC (Tue) by jzbiciak
(✭ supporter ✭
In reply to: 4K stacks: some issues remain
Parent article: 4K stacks: some issues remain
Looks to me like it's grepping through a disassembly for subtract instructions that move the stack pointer down, and pulling out the subtraction constant. This is useful because I'm pretty sure GCC moves the stack pointer in one go rather than incrementally through the life of the function.
By doing this, you can determine the stack footprint of most functions pretty quickly, and focus your attention on the heavy users.
to post comments)