Skip to content

Siddhesh4501/Heap_Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

Heap_Manager

Heap Manager made in C language as Project For DSA-II Course.


About Project

  • 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:
    1. Doubly Linked List
    2. Heap data Structure

Usage

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

Logic Implemented in this Project

Memory Layout

Malloc

Free

Calloc

Realloc

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy