How Can I Get See A Memory Map For An Executable

Mike Stump mrs@apple.com
Sun Nov 13 22:50:00 GMT 2005


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.



More information about the Gcc-help mailing list