autobuild3 icon indicating copy to clipboard operation
autobuild3 copied to clipboard

Retro: use -Os instead of -O2

Open Artoria2e5 opened this issue 4 years ago • 4 comments

my laptop screen is dead and i cant be arsed to type on a phone or i would be sending a PR already

anyway apple does this extensively with clang, and I don't expect the performance to be terrible since we could be saving instruction cache

hell we could use -Oz on clang. who cares about auto vectorization on a pentium.

Artoria2e5 avatar Oct 03 '20 02:10 Artoria2e5

I would, but honestly, on Pentium MMX, Pentium, and even 486 - I don't look forward to this prospect...

MingcongBai avatar Oct 03 '20 02:10 MingcongBai

@MingcongBai as I know, when memory is the bottleneck, the memory saved by -Os is precious and will really make performance better.

Icenowy avatar Oct 03 '20 02:10 Icenowy

@MingcongBai as I know, when memory is the bottleneck, the memory saved by -Os is precious and will really make performance better.

Might be worth a try, this is usually the issue with our target devices. But honestly, mostly with i486.

MingcongBai avatar Oct 03 '20 02:10 MingcongBai

However, I should note that with our i486's 508MiB installed size, over 200MiB goes to /usr/share.

MingcongBai avatar Oct 03 '20 02:10 MingcongBai