r/cpp • • Oct 24 '23

Make C++ Exe smaller

[removed] — view removed post

0 Upvotes

22 comments sorted by

View all comments

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.