Check which local values will escape to heap at run time.
$ go build -gcflags -m
Compile to different OS/ARCH.
$ export GOOS=linux; export amd64=amd64; go build
Show supported arch
$ go tool dist list -json https://github.com/golang/go/blob/master/src/go/build/syslist.go https://golang.org/doc/install/source#environment
$ go build -gcflags -m
Compile to different OS/ARCH.
$ export GOOS=linux; export amd64=amd64; go build
Show supported arch
$ go tool dist list -json https://github.com/golang/go/blob/master/src/go/build/syslist.go https://golang.org/doc/install/source#environment
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.