-
Little endian vs Big endian
Endianness in simple words is ordering of bytes in memory to represent some data. Computer memory in general is visualized as a sequence of bytes. But, in medium or high level languages like C we work with data types with size more than a byte.
Consider a 32 bit integer (in hex): 0xabcdef12
It consists of 4 bytes: ab, cd, ef, and 12. Hence this integer will occupy 4 bytes in memory. Say we store it at memory address starting 1000. There are 24 different orderings possible to store these 4 bytes in 4 locations (1000 - 1003). 2 among these 24 possibilities are very popular. These are called as little endian and big endian.
Little endian - Stores the Least significant byte at the lowest address. Example: Intel Pentium Processors.
Big endian - Stores the Most (Big) significant byte at the lowest address. Example: Sun/SPARC, IBM/RISC 6000.
On little endian system, memory will be like:
Address Value
1000 12
1001 ef
1002 cd
1003 ab
On Big endian system, memory will be like:
Address Value
1000 ab
1001 cd
1002 ef
1003 12
http://techforb.blogspot.com.br/2007/10/little-endian-vs-big-endian.html
-
Little-endian significa armazenar bytes na ordem do menor para o mais significativo (onde o byte menos significativo ocupa o primeiro, ou menor, endereço),comparável a maneira comum de escrever datas na Europa (por exemplo, 31 Dezembro de 2050).
Naturalmente, big-endian é a ordem oposta, comparável a uma data ISO (2050-12-31). Big-endian é frequentemente chamada de "ordem de bytes de rede", por que os padrões da internet geralmente exigem que os dados sejam armazenados em big-endian.
“Little Endian” significa que os bytes de menor ordem do número são armazenado na memória nos menores endereços.
“Big Endian” significa que os bytes de maior ordem de um número serão armazenados nos menores endereços,
Fonte:https://developer.mozilla.org/pt-BR/docs/Glossario/Endianness
-
b-
In computing, endianness is the order or sequence of bytes of a word of digital data in computer memory. Endianness is primarily expressed as big-endian (BE) or little-endian (LE). A big-endian system stores the most significant byte of a word at the smallest memory address and the least significant byte at the largest. A little-endian system, in contrast, stores the least-significant byte at the smallest address.
https://en.wikipedia.org/wiki/Endianness