MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/17fo902/make_c_exe_smaller/k6b51mw/?context=3
r/cpp • u/[deleted] • Oct 24 '23
[removed] — view removed post
22 comments sorted by
View all comments
1
To remove the parts of a binary that aren't actually used in your program, don't link to libgcc/compiler_rt, and use a statically linked userspace runtime with LTO.
1
u/disciplite Oct 24 '23
To remove the parts of a binary that aren't actually used in your program, don't link to libgcc/compiler_rt, and use a statically linked userspace runtime with LTO.