Heap Manager made in C language as Project For DSA-II Course.
- Efficient and FastMemory Management is very important topic in industry.
- We implement our own Heap Manager here which take care of memory allocation and deallocation in efficient way.
- The complete Project is implemented in C language.
- We implement here Malloc,Free,Calloc and Realloc calls here in this project.
- Data Structures used:
- Doubly Linked List
- Heap data Structure
Make sure you have gcc installed You can check by typing the following in your terminal
$ gcc --version
Download the repository (May be use git clone or download zip folder of project).
$ git clone https://github.com/Siddhesh4501/Heap_Manager.git
Copy mm.h
, mm.c
, heap.h
and heap.c
from the src/ folder to your project directory and include mm.h
in your main file instead of <stdlib.h>
library
#include "mm.h"
Don't forget to add mm_init() at the start of your main() function or any other file in which use include mm.h
file.
mm_init()
Compile program by using
gcc yourfiles.c mm.c heap.c -o final
Execute ./final
to see output of your code.
./final