1 comment

[ 4.0 ms ] story [ 15.9 ms ] thread
"To compare this to C, if you are building a dynamically linked library, then it is a mere 8 kbytes. If you do it static, then the size increases to over 800 kbytes which is surprisingly even larger than the Go binary (snippet 3)."

19kbytes using musl. Stripped is 14kbytes.

Static is 25kbytes. Stripped is 19kbytes.

There seems to be some conflation of a particular C standard library with the C language.

There are many C standard libraries, of varying quality. They do not all come from Bell Labs.

With Go, it seems like only one standard library is ever considered. The one from Google.

I want to know how to compile Rust programs on computers that have enough resources to compile C programs but not much more.