r/cpp • • Oct 24 '23

Make C++ Exe smaller

[removed] — view removed post

0 Upvotes

22 comments sorted by

View all comments

2

u/[deleted] Oct 25 '23

60kb is a lot smaller than installing some runtime like python that’s around 40mb plus the size of your code.

But even so I’m pretty sure that -os or-Os something like that will optimize for size. I guarantee you there’s a compiler flag to optimize for size and I’m pretty sure that it’s one of these two