4 ms·
I dont understand the reported size of the go runtime. Sure, an hello world can be 2 megs in Go, but not 500. Compiled binaries are standalone and famously stat
by makapuf 4y ago
I dont understand the reported size of the go runtime. Sure, an hello world can be 2 megs in Go, but not 500. Compiled binaries are standalone and famously statically linked, so there is no extra RUNtime. I'd think the reported 470MB is the compiler and stdlib install size ?
- edflsafoiewq 4y agoI also don't understand the quoted size of "LLVM/clang compiler+runtime". If I tally up the size of clang and it's dependencies with my package manager, I might get 500M, not 5G.
- vocx2tx 4y agoHe probably ran ls on /usr/local/go (it's 477MB on my machine). But that's the size of the entire Go download after unarchiving, which includes the runtime's and all the standard library's 1) source code and 2) precompiled object files, both in normal and race-mode. So no, that's not the actual size of "the Go runtime" for any meaningful definition of "the Go runtime".