Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In theory you could tell the compiler to identify and statically link only those functions needed to make printf work (or a conservative approximation thereof).



Yeah, that's just running LTO (`-C lto`). This brings the binary size down a bit, thought you also need to opt out of jemalloc to get a good impact.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: