This project implements a version of malloc() and free() functions from the #stdlib from scratch.
gcc -g -c memoryPageAllocation.c -o mm.o
gcc -g -c test.c -o test.o
gcc -g -c glthreads/glthread.c -o glthreads/glthread.o
gcc -g mm.o glthreads/glthread.o test.o -o test
- Download or clone repository.
- Extract files: mm.h, memoryPageAllocation.c, uapi_mm.h files and glthreads folder on your project folder.
- Incluce #include "uapi_mm.h" on your main header.
- call function XCALLOC() to allocate structures and XFREE() to free memory space.