r/programming • u/awesomePop7291 • Jul 23 '26
Everyone Should Know SIMD
https://mitchellh.com/writing/everyone-should-know-simd
413
Upvotes
r/programming • u/awesomePop7291 • Jul 23 '26
View all comments
Show parent comment
13
u/corysama Jul 24 '26
The challenge is that when you write C the compiler is bound by the rules of C. That means if it is even possible that your code might depend on some obscure rule, the compiler must ensure that rule is enforced.
Big examples being floating point commutativity, unaligned access and odd-sized arrays.