2012年5月2日

how does malloc/free work?

摘要: Here is the answer I got from Internet.Here's a simple, vague answer:Your process has a region of memory, from address x to address y, called the heap. All your malloc'd data lives in this area. malloc() keeps some data structure, let's say a list, of all the free chunks of space in the 阅读全文

posted @ 2012-05-02 19:17 Torstan 阅读(282) 评论(0) 推荐(0) 编辑

导航