[talk] Golang and Platform Independence

Sujit K M kmsujit at gmail.com
Sun Dec 17 08:30:19 EST 2017

On Sun, Dec 17, 2017 at 5:58 PM, Brian Cully <bcully at gmail.com> wrote:
> On December 17, 2017 at 00:55:32, Sujit K M (kmsujit at gmail.com) wrote:
>> Golang does allow you to build executable. But it allows you to
>> run the go program as an script. Below some of the commands
>> that can be used in a document I had refered. What I found was
>> that go can generate code on other platforms. So is my assumption
>> correct it can run on platforms that don't support the go program as such.
>         Go does this by installing its own source code and cross-compiling
> it[1], so there’s no difference between it and, say, GCC, which can

I find it different from GCC for example does not look a specific language or
target. It compiles C/Assembly might be even C++. Where as the Golang set
of compilers don't depend on architecture for example as it is compiling an
go program.

>         FWIW, this has been baked into the Go distribution for some time — no
> need for compiling from source any more.

Yeah but my original question is whether we can compile it to a target where the
go program is not run as an script.

More information about the talk mailing list