goclipse的goarch设置是否重要?

huangapple go评论87阅读模式
英文:

Do goclipse goarch settings matter?

问题

我从Go发行页面下载并安装了go1.1.2.windows-amd64.msi,并在eclipse中使用goclipse插件进行设置。

令人困惑的是,在goclipse的设置中,GOARCH设置似乎并不重要。我可以使用arm386amd64设置GOARCH来启动一个新项目,项目仍然可以正常编译和运行。

我是否需要遵循某种设置,或者GOARCH设置根本不重要?

另外,带有后缀amd64的Go发行版是否应该用于64位的AMD芯片而不是英特尔芯片?(命名约定有点令人困惑)

我的当前设置:

Eclipse Keplar 64位

Goclipse 0.7.6

go version go1.1.2 windows/amd64
在运行Windows 7 64位的Intel i7-3630QM上运行

英文:

I downloaded and installed the go1.1.2.windows-amd64.msi from the Go distribution page and set it up on eclipse with the goclipse plugin.

The baffling thing is that in the goclipse settings, the GOARCH settings don't seem to matter. I can start a new project with the GOARCH settings set to arm, 386 or amd64 and the project will still compile and run just fine.

Is there a setting i'm supposed to conform to or does the GOARCH setting not matter at all?

Additionally, are the Go distributions with the suffix amd64 supposed to be for 64bit AMD chips and not intel ones? (the naming convention was a little confusing)

My Current Setup:

Eclipse Keplar 64bit

Goclipse 0.7.6

go version go1.1.2 windows/amd64
running on windows 7 64-bit on a Intel i7-3630QM

答案1

得分: 1

不了解goclipse,但是关于Windows上的后缀,GOARCH=386会生成32位操作系统的可执行文件,而GOARCH=amd64会生成64位可执行文件。Go生成的程序可以在您的Windows上运行的任何现代CPU上运行(不包括ARM)。

英文:

Don't know about goclipse, but as to suffix on windows

GOARCH=386 will generate 32 bit OS exe
and
GOARCH=amd64 will make 64 bit exe.

Go generated programs will run on any modern CPU that your Windows runs (excluding ARM).

Alex

huangapple
  • 本文由 发表于 2013年10月15日 04:45:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/19368994.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定