csapp-lab6 malloc-lab

来源:互联网 发布:java math 生成随机数 编辑:程序博客网 时间:2024/05/17 21:45

这个lab最重要的就是把书上的例子完全理解,包括HeaderFooter的位置,brk的位置,分配的块的指针和Header和Footer的相对关系,Alignment的含义,以及Segregated free listroot数组中储存的其实是各个block列表的第一个block的地址。

有空再补后续,这里的代码包括三个版本,explicit listimplicit listSegregated list
代码见Github

原创粉丝点击