disable gc: llgo -tags nogc

This commit is contained in:
xushiwei
2024-06-08 23:06:55 +08:00
parent a057db8756
commit fb7ea7810e
11 changed files with 200 additions and 41 deletions

View File

@@ -185,6 +185,17 @@ Here are some examples related to Go syntax:
* [goroutine](_demo/goroutine/goroutine.go): goroutine demo
### Garbage Collection (GC)
By default, LLGo implements `gc` based on [bdwgc](https://www.hboehm.info/gc/).
However, you can disable gc by specifying the `nogc` tag. For example:
```sh
llgo run -tags nogc .
```
## Go packages support
Here are the Go packages that can be imported correctly: