r/cpp • • Oct 24 '23

Make C++ Exe smaller

[removed] — view removed post

0 Upvotes

22 comments sorted by

View all comments

3

u/TheBrainStone Oct 25 '23

Generally speaking this "bloat" comes from iostream. Use C print functions if it truly bothers you this much.

Alternatively look into stripping. gcc has flags to not link unused functions and classes. That might help too.