Ubuntu 25.04 "Plucky Puffin" Development Opens - Defaulting To -O3 Optimizations (www.phoronix.com)
from KarnaSubarna@lemmy.ml to linux@lemmy.ml on 30 Oct 21:07
https://lemmy.ml/post/21966025

#linux

threaded - newest

GolfNovemberUniform@lemmy.ml on 30 Oct 21:09 next collapse

Not like Ubuntu works very well on old hardware but hopefully O2 support will still be there. Many people need it.

ozymandias117@lemmy.world on 30 Oct 23:05 collapse

-O2 vs -O3 adds -fgcse-after-reload -fipa-cp-clone -floop-interchange -floop-unroll-and-jam -fpeel-loops -fpredictive-commoning -fsplit-loops -fsplit-paths -ftree-loop-distribution -ftree-partial-pre -funswitch-loops -fvect-cost-model=dynamic -fversion-loops-for-strides

I don’t think any of these optimizations require more modern hardware?

themoken@startrek.website on 31 Oct 00:44 next collapse

Right. GCC -f optimizations are basically like “how hard are we going to try to be clever” and are, I believe, orthogonal to the actual instructions used. Machine dependent args start with -m, like -march or -mavx etc.

ozymandias117@lemmy.world on 31 Oct 00:47 collapse

I was reasonably certain, but left it open in case OP knew of some edge case where flags that are intended to be machine independent caused bugs on different architectures

lengau@midwest.social on 03 Nov 21:07 collapse

Yeah, adding a separate microarchitecture like amd64v3 would be a separate item. They might be able to do that with amd64v3 overlay repos that only contain packages that most benefit from the newer microarchitecture.

ryannathans@aussie.zone on 30 Oct 21:37 next collapse

How do they avoid the subsequent bugs O3 tends to produce?

communist@lemmy.frozeninferno.xyz on 30 Oct 22:30 next collapse

They don’t.

fossphi@lemm.ee on 31 Oct 00:43 collapse

First time I’m hearing of this. Do you have some more details?

zagaberoo@sopuli.xyz on 31 Oct 02:51 collapse
drspod@lemmy.ml on 30 Oct 22:55 next collapse

Gentoo users in shambles

zagaberoo@sopuli.xyz on 31 Oct 00:40 next collapse

Bah, they’ll never have my precious -march=native!

boonhet@lemm.ee on 31 Oct 16:28 collapse

I doubt they want my fun and safe math optimizations either tbh

Presi300@lemmy.world on 31 Oct 09:21 collapse

Jokes on you, my system is (mostly) -O3

eldavi@lemmy.ml on 31 Oct 19:04 collapse

too fancy for -O2? lol

Presi300@lemmy.world on 31 Oct 20:32 collapse

Yes

scratchandgame@lemmy.ml on 01 Nov 11:25 collapse

op-ti-mize [verb (trans.)]* … (gcc) to modify executable code so that it fails more quickly.