← All projects
Systems & concurrency / Languages & VMs · 2025

C_GC_Conservative

C has no garbage collector, so I wrote one: it finds the memory a program still uses by scanning the stack for anything that looks like a pointer, follows those pointers through the heap, and frees everything left unreached, with no change to the program's code.

CGNU C builtins
Team
Solo
Context
Personal project
Status
Done
The int[50] block allocated on line 18 is freed once unreachable
The int[50] block allocated on line 18 is freed once unreachable