2 ms·
> For example, it's little endian because little endian won (because it is better). Could you elaborate on this? My understanding is that Little Endian was int
by MayeulC 7y ago
> For example, it's little endian because little endian won (because it is better).
Could you elaborate on this? My understanding is that Little Endian was introduced to enable some optimizations on low-level mathematical operations or fetch operations. However, as the block size for ram operations increased, together with the transistor count, it was IIRC shown (I can't find a reference) that there were little advantages in using one or the other (different optimizations being possible in either). I tend to prefer Big Endian, as it is closer to our numerical representation, and the network order.
Saying that Little Endian has "won" could be justified if you only look at x86, but I wouldn't call that the whole story.
- microcolonel 7y agoI used to like big endian for the same reason (that it seems more similar to our written numeral conventions), but little endian allows you to narrow and widen integers with no operations, and without changing the pointer. That's why it's better in my view.