MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/17fo902/make_c_exe_smaller/k6b8s3m/?context=3
r/cpp • u/[deleted] • Oct 24 '23
[removed] — view removed post
22 comments sorted by
View all comments
13
As I remember, -Os flag will optimize the binary to be smaller. But IMHO, I doubt 60KB(20 times smaller than a single picture) is huge enough to bear (potential) performance loss(unless you're working on a tiny microcomputer).
3 u/awidesky Oct 24 '23 Add : gcc documents for optimization flags
3
Add : gcc documents for optimization flags
13
u/awidesky Oct 24 '23
As I remember, -Os flag will optimize the binary to be smaller. But IMHO, I doubt 60KB(20 times smaller than a single picture) is huge enough to bear (potential) performance loss(unless you're working on a tiny microcomputer).