A Simple Garbage Collector implementation in C
- 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.
# include "gc_memory.h"
make re
make
-I ./$(PATH_OF_GC_MEMORY)/include
-L ./$(PATH_OF_GC_MEMORY)/gc_memory.a
- Header file : All information about how to use the function of gc_memory.