Go compilation options (note)

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

From the ' to go '

The compiler flags are:

c:\users\ivo>8g
gc:usage:8g [flags] file.go ...
Flags
-I dir search for packages in DIR
-D Print Declarations
-e No limit on number of errors printed
-F Print Stack frame structure
-H panic on an error
-o file Specify output file//see§3.4
-S print the generated assembly code
-V Print the compiler version//see§2.3 (7)
-U Disable Package unsafe
-W Print the parse tree after typing
-X Print Lex Tokens
-I can be used to indicate the map in which the Go files to compile is (it can also
contain the variable $GOPATH)
The linker flags are:
c:\users\ivo>8l
usage:8l [-options] [-e entry] [-H head] [-I interpreter] [-l dir] [-t text] [-R
RND] [-R Path] [-O out] main.8
-L can is used to indicate the "map in which" the Go files to link is (it can also contain
The variable $GOPATH)

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.