News for hackers. Stuff that matters.
Re:Why is Rosetta 2 fast? by AceJohnny2 on Wednesday November 09, 2022 @04:46PM (#33538358)
> Or optimized for size.

Note that on gcc (I think) and clang (I'm sure), -Oz is a strict superset of -O2 (the "fast+safe" optimizations, compared to -O3 that can be a bit too aggressive, given C's minefield of Undefined Behavior that compilers can exploit).

I'd guess that, with cache fit considerations, -Oz can even be faster than -O2.

Re:Why is Rosetta 2 fast? by MayeulC on Thursday November 10, 2022 @03:29AM (#33543737)
Interesting, I didn't know about -Oz (only -Os for size). -Oz is reportedly mac-specific https://stackoverflow.com/questions/1778538/how-many-gcc-opt...