4 ms·
Probably because English is not my native language, but it always looked to me that the names are backward: * "big-endian" should have "big" (most significant)
by Miiko 5y ago
Probably because English is not my native language, but it always looked to me that the names are backward:
* "big-endian" should have "big" (most significant) part on the end
* and "little-endian" should have "little" (least significant) bits at the end
Is there different mnemonics to remember what is what?
- yetihehe 5y agoTry with original source [0]. Big-endian, because some Lilliputians eat eggs starting from big end, little-endian, because some start from little end. Works for me. [0] https://en.wikipedia.org/wiki/Endianness#Etymology https://en.wikipedia.org/wiki/Endianness#Etymology
- Miiko 5y agoThanks! now that makes sense - indeed, "endian" refer not to what's on the end, but from which end we start writing the number.
- kevin_thibedeau 5y agoThe little end is at the lower address for LE.
- yetihehe 5y agoUnless you show your memory layout on picture, where adress 0 is on top.
- kevin_thibedeau 5y agoStill numerically lower.
- anyfoo 5y agoIt's not, a 16bit LE value at address 0 will have the low byte at address 0 and the high byte at 1. Unless I misunderstood what you meant with "little end"? (But then there is still room for confusion in that term, apparently.)
- kevin_thibedeau 5y agoThe little end is always at a lower address. It doesn't matter which way you draw the number line.
- anyfoo 5y agoAh, I see what you mean now. We are in agreement after all.