runtime: implement a simple mark/sweep garbage collector

This commit is contained in:
Ayke van Laethem
2018-11-18 19:18:39 +01:00
parent dbf581b56d
commit 8402e84b6d
7 changed files with 477 additions and 3 deletions
+1 -1
View File
@@ -435,7 +435,7 @@ func handleCompilerError(err error) {
func main() {
outpath := flag.String("o", "", "output filename")
opt := flag.String("opt", "z", "optimization level: 0, 1, 2, s, z")
gc := flag.String("gc", "dumb", "garbage collector to use (none, dumb)")
gc := flag.String("gc", "", "garbage collector to use (none, dumb, marksweep)")
printIR := flag.Bool("printir", false, "print LLVM IR")
dumpSSA := flag.Bool("dumpssa", false, "dump internal Go SSA")
target := flag.String("target", "", "LLVM target")