This is a creation in Article, where the information may have evolved or changed. The Go Project team released the Go 1.5 plan, and go 1.5 will be built using go 1.4, and the go source tree will completely eliminate all C's code. Remove the C compiler (5C,6C,8C,9C). The remaining C programs will be translated into the go language, including go compilers (Golang.org/s/go13compiler), assembler and connector (Golang.org/s/go13linker), and cmd/dist. If these programs use Go Write, which will trigger a startup problem in the full build source-you need an available go tool chain to build the go toolchain.
To build Go 1.x (x≥5), you need to first install go 1.4 to $GOROOT _bootstrap. The default $GOROOT _bootstrap is $HOME/go1.4. We use Go 1.4 as the base version of the boot to compile the toolchain.
Let's take a look at what it's like to build go 1.4:
- Build cmd/dist using GCC or clang.
- Using the dist, build compiler tool chain (GCC or clang)
- NOP
- Build Cmd/go with Dist (as Go_bootstrap)
- Use Go_bootstrap to build additional standard libraries and commands
The build of Go 1.x (x≥5) will become:
- Build cmd/dist with Go 1.4
- Building the compiler toolchain using dist
- Rebuilding the compiler toolchain using dist
- Build Cmd/go with Dist (go_bootstrap)
- Building other standard libraries and commands using Go_bootstrap
See here for more planning changes for Go 1.5.
RELATED LINKS
Go in detail: please click here
Go Download Address: please click here