|
发表于 2012-9-6 00:47:49
|
显示全部楼层
THE HEAP
The heap contains dynamic data allocated by the C function malloc (or one of its
relatives) or the C++ operator new.
If your application uses dynamic memory allocation, you should be familiar with:
● Linker segments used for the heap
● Allocating the heap size, which differs depending on which build interface you are
using
● Placing the heap segments in memory.
A heap is only included in the application if dynamic memory allocation is actually
used.
栈的大小基本也是不必操心的,编译器会最大限度的利用内存,实际没用到的内存基本都属于栈。 |
|