Re:Endianness, a constant source of conflict for decades
by minusf on Wednesday August 18, 2021 @03:34AM
(#28218562)
which is a loss, as according to openbsd developers developing for both caught a lot of bugs otherwise not found easily..
[ Parent
| on HN ]
Re:Endianness, a constant source of conflict for decades
by iainmerrick on Wednesday August 18, 2021 @04:34AM
(#28218861)
Couldn’t you keep that benefit by testing on emulated big-endian hardware, though?
(edit to fix interesting autocorrect glitch... “bug-endian” indeed!)
Re:Endianness, a constant source of conflict for decades
by edflsafoiewq on Wednesday August 18, 2021 @03:42AM
(#28218607)
Give us an example.
Re:Endianness, a constant source of conflict for decades
by saurik on Wednesday August 18, 2021 @04:06AM
(#28218720)
(I mean it just seems obvious you would catch more bugs given the format of big-endian, right?... it comes directly from the dual of one of the not-really-a-benefits of little-endian: how you can cast between pointers of different integer types without moving the pointer.)
Re:Endianness, a constant source of conflict for decades
by agent327 on Wednesday August 18, 2021 @04:10PM
(#28226436)
I'm totally onboard with casting integers, and I can understand casting between pointers-to-char and pointers-to-other, but why on earth would you want to cast between pointers to (different) integers? That seems like asking for trouble, for no benefit I can discern...