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

Reply via email to