06 2023 档案
摘要:Malloclab Summary 1、writeup mm_init : 调用 mm_init 来执行任何必要的初始化,比如分配初始堆区域。如果在执行初始化时出现问题,返回值应为 -1,否则为0。 mm_malloc : malloc总是返回8字节对齐的指针。 2、隐式空闲链表+firstfit
阅读全文
摘要:Shelllab Summary ps:对全局变量的访问要屏蔽所有信号,我没加。 1、eval /* * eval - Evaluate the command line that the user has just typed in * * If the user has requested a
阅读全文
摘要:Cachelab Summary part A 仔细阅读一下writeup,大概可以知道partA的任务是: 在cism.c中写代码模拟实现一下cache,要求的格式中参数[h,v]为可选,我们可以不管,最后实现成以下这样的操纵即可 linux> ./csim -s 4 -E 1 -b 4 -t t
阅读全文
摘要:Attacklab Summary 1、phase1 先把汇编代码取出 objdump -d ./ctarget>>ctarget.s 生成的代码很长,查找以下我们需要用到的3个函数,分别是test,getbuf和touch1 0000000000401968 <test>: 401968: 48
阅读全文