John Regehr personal blog

The Strict Aliasing Situation Is Pretty Bad

One thing that works well in practice in cases where you really don’t want to process single bytes at a time is to use a union for going from one type to another. Granted, writing one member of a union and reading from a different one also isn’t allowed per the standard, but every compiler I’ve come across allows it…
Points
150
HN comments
125
Submissions
2
Cited by
9 commenters

Programming LanguagesSoftware Engineering2016

On Hacker News

SubmittedTitle on HNPointsComments
Mar 15, 2016The Strict Aliasing Situation Is Pretty Bad by pascal_cuoq15067
Oct 6, 2024The strict aliasing situation is pretty bad (2016) by pkkm7458

Cited in comments

Linked from 11 Hacker News comments by 9 different people, from Mar 2016 to Mar 2021.

Most recent:

Search every comment that links here →

More from John Regehr

All 41 posts →

Related posts from the same era