This question already has an answer here:
Yesterday I just wanted to compare simple golang HelloWorld
app with c, go binary was something like 2-3 MB
(just fmt.Println
) the equivalent c code, however, was just about 20 kb (printf
). Then I checked system calls both binaries were doing, using strace
; there was not a huge difference between both so do you have any idea why golang binary is so massive in comparison with c equivalent?
</div>