Your question is not specific enough, bare-metal or OS, X86 or ARM architecture, for example, ARM provides a register indicating the Stack Pointer (r13). In Linux, you can cat /proc/pid/maps to get per process info on stack and heap.
Jack Harvard On Wed, Jun 13, 2012 at 5:01 PM, Simon Garcia de Gonzalo <[email protected]> wrote: > Is there a way to keep track of the size of the stack? For example, what > address does the stack starts and ends and where does the heap starts? > > Thanks > Simon > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
