News for hackers. Stuff that matters.
Re:RISC-V Is Sloooow by adgjlsfhk1 on Wednesday March 11, 2026 @11:13PM (#47345961)
> I do agree that it'd be reasonable to just assume fast misaligned ops, but for whatever reason gcc and clang just don't, and that's what we have for defaults.

This very much has a "for now" on it. Once there is actually widespread hardware with the feature, I would be very surprised if the compilers don't update their heuristics (at least for RVA23 chips)

Re:RISC-V Is Sloooow by dzaima on Thursday March 12, 2026 @09:33AM (#47350321)
Indeed we shall hope heuristics update; but of course if no compilers emit it hardware has no reason to actually bother making fast misaligned ops, so it's primed for going wrong.
Re:RISC-V Is Sloooow by adgjlsfhk1 on Thursday March 12, 2026 @04:31PM (#47356633)
hardware devs traditionally have been pretty good at helping the compiler teams with things like this (because its a lot cheaper to improve the compiler than your chip).