mirror of
https://codeberg.org/andyscott/marCsweep.git
synced 2024-11-13 15:50:50 -05:00
30 lines
794 B
Markdown
30 lines
794 B
Markdown
# 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`.
|
|
|
|
Dependences: `git`, `make`, and `gcc`. Compiling with `clang` is also possible,
|
|
simply replace "gcc" with "clang" in the first line of the Makefile.
|
|
|
|
```
|
|
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. Thank you to [Robert
|
|
Nystrom](https://journal.stuffwithstuff.com/2013/12/08/babys-first-garbage-collector/)
|
|
for the idea.
|