If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Announcement
Collapse
No announcement yet.
Go 1.5 Released, Its Compiler Toolchain Is Now In Go
Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite
As somebody who's never really touched Go... does the person running the program have to have Golang runtime libraries installed? Or do they get packaged when you compile the program?
I'm assuming this because it uses a GC and other runtime features that are more advanced than, say, a C runtime which is fairly minimal in comparison (and doesn't really affect the size of your programs).
As somebody who's never really touched Go... does the person running the program have to have Golang runtime libraries installed? Or do they get packaged when you compile the program?
I'm assuming this because it uses a GC and other runtime features that are more advanced than, say, a C runtime which is fairly minimal in comparison (and doesn't really affect the size of your programs).
Just wondering.
It's statically linked by default so a simple hello world program would be around 1MB with most of the stuff being the runtime. There is an option to compile packages as shared libraries but kinda pointless for most use-cases.
It's statically linked by default so a simple hello world program would be around 1MB with most of the stuff being the runtime. There is an option to compile packages as shared libraries but kinda pointless for most use-cases.
Now that the Go toolchain is written in Go, how are you even supposed to bootstrap it ?
I mean with GCC it's easy: it's written in C, and there are C compilers written for almost anything able to running code under the sun.
You're bound to find some C compiler in which to build a preliminary bootstrap of GCC.
But with Go ? Go compilers aren't as ubiquitous as C.
Now that the Go toolchain is written in Go, how are you even supposed to bootstrap it ?
I mean with GCC it's easy: it's written in C, and there are C compilers written for almost anything able to running code under the sun.
You're bound to find some C compiler in which to build a preliminary bootstrap of GCC.
But with Go ? Go compilers aren't as ubiquitous as C.
You just download the Go binary and use it to bootstrap Go. The binary is statically-linked so you can run it pretty much anywhere without worrying about missing some dependencies.
Last edited by veeableful; 22 August 2015, 06:24 AM.
Comment