r/C_Programming • u/8d8n4mbo28026ulk • Jul 30 '26
Memory layout primitives
https://napcakes.nekoweb.org/posts/blayout/
40
Upvotes
r/C_Programming • u/8d8n4mbo28026ulk • Jul 30 '26
View all comments
Show parent comment
2
u/8d8n4mbo28026ulk Aug 04 '26
Oh that's cool, I didn't know about that. I'll add an update to the post. Do you know if the
-std=c2yflag really changes the compiler's aliasing model, or is it more to err on the safe side? What I mean is, N3230 doesn't break older code (atleast I hope!), and so if the compilers bothered to incorporate it in their aliasing model, perhaps they did so for all standards ("backported" it). Changing aliasing model depending on the standard seems a bit too crazy.And thanks!