Yeah, if that figure includes the executable, then it's also probably including the whole runtime (scheduler, GC, etc) since Go programs statically link the runtime by default. In that case, 2MB isn't so bad (especially considering glibc is ~10MB [and with no scheduler or GC!] iirc).
Re:Beating C with 70 lines of Go
by ajeetdsouza on Wednesday November 20, 2019 @05:35PM
(#21589359)
The size of a compiled Hello World program is 2 MB on my machine, so you're probably right!
I guess that's the size of the executable after it's been loaded into RAM that's so large?