Manny Kayy
Manny Kayy

Reputation: 33

Do goclipse goarch settings matter?

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

Upvotes: 0

Views: 340

Answers (1)

alex
alex

Reputation: 2248

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

Upvotes: 1

Related Questions