Skip to content

joseph-el/Simple_Garbage_Collector_in_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GARBAGE COLLECTOR 🛡🔰

A Simple Garbage Collector implementation in C

Tests Passing GitHub Contributors GitHub pull requests

About Project 💡

  • Garbage Collection (GC) is a mechanism that provides automatic memory reclamation for unused memory blocks.
  • Programmers dynamically allocate memory, but when a block is no longer needed, they do not have to return it to the system explicitly with a free() call. The GC engine takes care of recognizing that a particular block of allocated memory (heap) is not used anymore and puts it back into the free memory area.

How to use it

Include header file of GC_MEMORY in your program.
 # include "gc_memory.h"
- Generate gc_memory.a library
 make re
 make
> Add This in your compilation ⬇️
- Linking include in your compilation
-I ./$(PATH_OF_GC_MEMORY)/include
- Call gc_memory.a library in your compilation
 -L ./$(PATH_OF_GC_MEMORY)/gc_memory.a
For more details check :
  • Header file : All information about how to use the function of gc_memory.

About

A Simple Garbage Collector implementation in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published