dfernandez234 / linux_memoryManager_C

Implementation of the Malloc function from scratch using C and Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux C Memory Manager

This project implements a version of malloc() and free() functions from the #stdlib from scratch.

How to run project

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

How to add to other projects

  1. Download or clone repository.
  2. Extract files: mm.h, memoryPageAllocation.c, uapi_mm.h files and glthreads folder on your project folder.
  3. Incluce #include "uapi_mm.h" on your main header.
  4. call function XCALLOC() to allocate structures and XFREE() to free memory space.

About

Implementation of the Malloc function from scratch using C and Linux


Languages

Language:C 100.0%