A Mark-and-Sweep Garbage Collector
Find a file
2024-08-19 15:46:35 -04:00
main.c first commit 2024-08-19 15:42:35 -04:00
Makefile Added Makefile 2024-08-19 15:46:10 -04:00
README.md Added README 2024-08-19 15:46:35 -04:00
vm.c VM: added definitions for init, push, and pop 2024-08-19 15:45:23 -04:00
vm.h VM: added function and data declarations 2024-08-19 15:44:39 -04:00

marCsweep

A mark-and-sweep garbage collector with a simple virtual machine to perform allocations.

Building

Compiling the project should be relatively easy, even if you aren't familiar with make.

git clone https://codeberg.org/andyscott/marCsweep.git

cd marCsweep

make release

That's it! The Makefile will automatically create the build directory and place the compiled executable there.

Notes

This is a personal project that I am writing in my free time to learn more about garbage collection. That said, please remember that it does allocate real memory, which should not be taken lightly!