This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How Can I Get See A Memory Map For An Executable


* 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]