Go 1.5 plan to start, use go to compile go

Source: Internet
Author: User
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:

    1. Build cmd/dist using GCC or clang.
    2. Using the dist, build compiler tool chain (GCC or clang)
    3. NOP
    4. Build Cmd/go with Dist (as Go_bootstrap)
    5. Use Go_bootstrap to build additional standard libraries and commands

The build of Go 1.x (x≥5) will become:

    1. Build cmd/dist with Go 1.4
    2. Building the compiler toolchain using dist
    3. Rebuilding the compiler toolchain using dist
    4. Build Cmd/go with Dist (go_bootstrap)
    5. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.