cd ./tests/gawk-3.1.8
and./configure
.cd ../../
to root folder and run one ofmake linked_gawk
ormake buddy_gawk
ormake minitest
to test.
- Your task is to implement two versions of malloc/calloc/realloc and free.
- One should be a linked-list implementation and the other an implementation of the buddy system.
- You must use sbrk to allocate memory from the kernel.
- Your implementations should work with gawk.
- Download gawk and type configure and make check.
- Then edit the Makefile to use your malloc implementation. To edit the Makefile, look for places where version is used and add your file in the same way.
- Then type make check again.
- Repeat for your other malloc implementation.
This rather naïve implementation resides in linked_alloc.c.
The implementation resides in buddy_alloc.c.