4 ms·
> Funny thing is, I am just getting into Go, and you know what? package main func main(){print("Hello");} is 951kB on my computer. But you need to r
by camus2 10y ago
> Funny thing is, I am just getting into Go, and you know what?
package main
func main(){print("Hello");}
is 951kB on my computer.
But you need to remember that Go bundles a whole runtime with your executable, something C doesn't do.
- pjmlp 10y ago> something C doesn't do. Sure it does, not all C compilers are like gcc with the idiosyncratics of glibc.
- coldtea 10y agoNo, only the ones that matter.
- pjmlp 10y agoThe ones that matter to me are perfectly capable of handling a -static flag and use other C runtimes.
- coldtea 10y agoYes, but "to me" is hardly relevant in a general discussion, if 99% of devs will use either GCC or Clang. Except if we're talking about a niche domain.
- pjmlp 10y agoClang can do static linking, it doesn't depend on glibc. Also, there is ICC, MSVC, C++ Builder, aCC, xlC, SunPRO, TI C, ARM DS C, ....