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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Mar 15, 2016 | The Strict Aliasing Situation Is Pretty Bad by pascal_cuoq | 150 | 67 |
| Oct 6, 2024 | The strict aliasing situation is pretty bad (2016) by pkkm | 74 | 58 |
Cited in comments
Linked from 11 Hacker News comments by 9 different people, from Mar 2016 to Mar 2021.
Most recent:
- dundarious · Mar 20, 2021
- slavik81 · Aug 27, 2019
- twtw · Dec 2, 2018
- raphlinus · Aug 18, 2018
- platinumrad · Jun 5, 2018