Because golang has a runtime that includes a garbage collector, goroutine scheduler etc
On Sat, 18 Apr 2020 at 20:29, Chris Burkert <burkert.ch...@gmail.com> wrote: > https://golang.org/doc/faq#Why_is_my_trivial_program_such_a_large_binary > > <jarek.1...@gmail.com> schrieb am Sa. 18. Apr. 2020 um 19:25: > >> Why does the simple Hello world program take 2 MB after compilation? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/4d572066-f044-4aa8-8661-5653381b6d81%40googlegroups.com >> <https://groups.google.com/d/msgid/golang-nuts/4d572066-f044-4aa8-8661-5653381b6d81%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/CALWqRZrM%2Bvm_P7QctRteOeKQncWoxNatVUVtPOcpL5fS115XuQ%40mail.gmail.com > <https://groups.google.com/d/msgid/golang-nuts/CALWqRZrM%2Bvm_P7QctRteOeKQncWoxNatVUVtPOcpL5fS115XuQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALHF5tprssJWp%2B%3DzOXyKdNk9LSrEURFUQWr8gRNx56uX7UN%3D6g%40mail.gmail.com.