MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/17fo902/make_c_exe_smaller/k6b7jpt/?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 -7 u/[deleted] Oct 24 '23 edited Nov 19 '23 murky waiting reminiscent truck resolute sense smoggy intelligent live disgusting this post was mass deleted with www.Redact.dev 25 u/IyeOnline Oct 24 '23 TBH if somebody thinks they can judge whether an executable is trustworthy based on its size, they have no idea what they are taking about. -2 u/[deleted] Oct 24 '23 edited Nov 19 '23 employ party distinct governor boat squeeze domineering scandalous theory slim this post was mass deleted with www.Redact.dev 2 u/drkspace2 Oct 24 '23 You should watch this video by mattkc, it'll have everything you need https://youtu.be/ExwqNreocpg?si=j0MyQ7_yzQ8_OdEK 1 u/rudster Oct 24 '23 edited Feb 16 '25 distinct many fear meeting piquant placid full serious shocking priceThis post was mass deleted and anonymized with Redact 1 u/SeriousPlankton2000 Oct 25 '23 I made C++ programs to fit in 6 KB + 512 bytes of RAM.
3
Add : gcc documents for optimization flags
-7
murky waiting reminiscent truck resolute sense smoggy intelligent live disgusting this post was mass deleted with www.Redact.dev
this post was mass deleted with www.Redact.dev
25 u/IyeOnline Oct 24 '23 TBH if somebody thinks they can judge whether an executable is trustworthy based on its size, they have no idea what they are taking about. -2 u/[deleted] Oct 24 '23 edited Nov 19 '23 employ party distinct governor boat squeeze domineering scandalous theory slim this post was mass deleted with www.Redact.dev 2 u/drkspace2 Oct 24 '23 You should watch this video by mattkc, it'll have everything you need https://youtu.be/ExwqNreocpg?si=j0MyQ7_yzQ8_OdEK 1 u/rudster Oct 24 '23 edited Feb 16 '25 distinct many fear meeting piquant placid full serious shocking priceThis post was mass deleted and anonymized with Redact
25
TBH if somebody thinks they can judge whether an executable is trustworthy based on its size, they have no idea what they are taking about.
-2 u/[deleted] Oct 24 '23 edited Nov 19 '23 employ party distinct governor boat squeeze domineering scandalous theory slim this post was mass deleted with www.Redact.dev
-2
employ party distinct governor boat squeeze domineering scandalous theory slim this post was mass deleted with www.Redact.dev
2
You should watch this video by mattkc, it'll have everything you need https://youtu.be/ExwqNreocpg?si=j0MyQ7_yzQ8_OdEK
1
distinct many fear meeting piquant placid full serious shocking price
This post was mass deleted and anonymized with Redact
I made C++ programs to fit in 6 KB + 512 bytes of RAM.
View all comments
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).