본문 바로가기
Problem Solving

Little Endian VS Big Endian

by REAL IT 2023. 11. 6.
728x90

 

A hexadecimal is 0 ~ F (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F).

Two hexadecimals are 00 ~ FF, which is a byte.

 

Big endian is the order we use in everyday life(0x is a notation for hexadecimal).

0x 80 00

= 8 * (16**3) in decimal

 

Little endian is in the reverse order of the big endian.

0x 00 80

So we should change the order before we read it.

0x 00 80 (little endian) -> 0x 80 00 (big endian)

 

Little endian has some advantages, one of them is the ease of calculation that you don't need to move digits and add some more bits in front of the digits to make a room for a carried digit from some addtion of big endians.

'Problem Solving' 카테고리의 다른 글

여행영어1  (0) 2023.11.06
SQLD  (0) 2023.11.06
No One Knows  (0) 2023.11.04
Large Numbers And Units  (2) 2023.11.02
Why I Study PS  (0) 2023.10.28