Re:KolibriOS – operating system written entirely in assembly...
by jsjohnst on Wednesday April 15, 2020 @10:37PM
(#22885500)
> Why would the inclusion of a call to a dynamic library bloat the final binary size?
Here’s two good links to read on it:
https://www.muppetlabs.com/~breadbox/software/tiny/teensy.ht...
I just compiled my own 'hello.c' on Linux, with the optimisation flag set for 'code size', and the binary weighed in around 8.3k. I then removed the `printf` call and the inclusion of `stdio.h`. The resulting binary was 8.1k. This is exactly as expected. Why would the inclusion of a call to a dynamic library bloat the final binary size?