This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How Can I Get See A Memory Map For An Executable
- From: Mike Stump <mrs at apple dot com>
- To: Steven Woody <narkewoody at gmail dot com>
- Cc: gcc-help at gnu dot org
- Date: Sun, 13 Nov 2005 14:50:19 -0800
- Subject: Re: How Can I Get See A Memory Map For An Executable
- References: <873bm1dmku.fsf@narke.yellow.line>
On Nov 12, 2005, at 11:38 PM, Steven Woody wrote:
i want to check in my C++ program, what variable is allocated in
where. is
there such a tool?
gdb is useful for debugging.
another relative question is, where the 'new' operator get memory
from?
malloc.
the global heap? does it same with what 'malloc' get from?
Yes.