This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How Can I Get See A Memory Map For An Executable
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Steven Woody <narkewoody at gmail dot com>
- Cc: gcc at gnu dot org
- Date: Sun, 13 Nov 2005 10:28:45 +0100
- Subject: Re: How Can I Get See A Memory Map For An Executable
- References: <873bm1dmku.fsf@narke.yellow.line>
* Steven Woody:
> i want to check in my C++ program, what variable is allocated in where. is
> there such a tool?
> how can i get see the runtime memory useage graph for my c++
> program? this will include stack memory and dynamic memory
> (heap). thanks.
To some extent, valgrind can generate such statistics.
> another relative question is, where the 'new' operator get memory from? the
> global heap? does it same with what 'malloc' get from?
Depends on the kind of "new" operator, but usually, yes.
Your questions are more suitable for the gcc-help mailing list.
Please ask further questions over there.