|
From: David G. <dav...@gm...> - 2011-07-14 03:04:13
|
Hi! Is there any obvious way to know if the addresses that lackey outputs (when --trace-mem=yes) are local to a function or global? Thanks! |
|
From: John R. <jr...@bi...> - 2011-07-14 14:03:21
|
> Hi! Is there any obvious way to know if the addresses that lackey > outputs (when --trace-mem=yes) are local to a function or global? If near the stack pointer, then definitely local. If not near the stack pointer, then probably not local, but could be indeterminate, especially for local-but-'static' variables. It's also cumbersome to separate reliably .data+.bss (allocated by /bin/ld) from dynamically-allocated-at-runtime heap (brk, sbrk, mmap). -- |