Files
csapp2025/malloclab
2025-06-04 17:06:19 +08:00
..
2025-05-21 14:41:01 +08:00
2025-06-04 17:06:19 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-05-26 19:19:19 +08:00
2025-06-04 17:06:19 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-05-26 19:19:19 +08:00
2025-06-04 00:49:13 +08:00
2025-05-21 14:41:01 +08:00
2025-05-21 14:41:01 +08:00
2025-06-04 17:06:19 +08:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

动态内存分配器实验

你需要修改mm.c你只能修改此文件其他文件不能修改使之能够处理内存分配mm_malloc、内存释放mm_free、内存扩张mm_realloc等功能。
你可以修改traces目录下的TRACE_LIST.txt以运行不同的trace。
你需要跑尽可能多的trace并在评分中拿到尽可能的高分。

【注意】并不是所有trace都可以跑的。有些trace内部包含了错误的操作是跑不通的。比如
1、试图realloc一个不存在的指针
2、试图free一个不存在的指针

Linux
1、make
2、./malloc -t traces

Windows:
1、用VS2019打开工程myMalloc/myMalloc.sln编译
2、生成可执行代码myMalloc -t traces


【提交】你需要将mm.c修改为mm_201900221122.c其中后面是你的学号。提交到educoder上。你只需要提交mm.c文件。