News for hackers. Stuff that matters.
Re:GCC always assumes aligned pointer accesses by saagarjha on Sunday August 20, 2023 @08:07PM (#37204137)
The general problem with this argument is that “do what the hardware does” is actually not easy to reason about. The end results of this typically are impossible to grok.
Re:GCC always assumes aligned pointer accesses by throwawaylinux on Sunday August 20, 2023 @10:21PM (#37204817)
Not if possible implementations are specified, and especially if you can target machines of particular behavior. Which is of course how you can write endian and bit size portable code.