r/ProgrammingLanguages • u/mttd • Jul 01 '26
The Expensive Fictions of Low-Level Programming Languages
https://stng.substack.com/p/the-expensive-fictions-of-low-level
19
Upvotes
r/ProgrammingLanguages • u/mttd • Jul 01 '26
View all comments
Show parent comment
1
u/Neat-Exchange6724 Jul 03 '26
All pointers always alias, but c does have restrict.
It’s the memory model in general. The classic of operations on pointer to {x,y,z} which can’t be changed to pointer to xs, ys, zs. Because the memory is defined.
C also suffers from a severe problem of standard definition weakening. Many obvious things that all compilers agree on are undefined behaviour if you assume a sufficiently stupid compiler implementer.