This is the mail archive of the gcc-help@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


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.



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