To compile the Go program you type in go build myprogram.go, can you pass optimization flags or is the code always compiled in the same way? I'm talking about speed optimizations, code size optimizations, or other optimizations.
I know if you use gccgo, you just go through -O2or -O0, but my question is about the official Go compiler go.
source
share