Hacker News new | ask | show | jobs
by mystikal 3754 days ago
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).
2 comments

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.