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.