Endian 유래

OS concept 2006. 7. 20. 07:38
http://en.wikipedia.org/wiki/Gulliver's_Travels  
In the discipline of Computer Architecture, the terms big-endian and little-endian are used to describe two possible ways of laying out bytes in memory (see endianness). One of the conflicts in the book is between people who preferred cracking open their soft-boiled eggs from the little end, and the people who preferred the big end.


다들 다 아는 내용이겠지만, 걸리버의 여행기로부터 Little endian과 Big endian의 유래가 나왔다가 한다. 뾰족한 부분 혹은 둥글한 부분을 깨는 부분에 따라서 유래가 나왔다.

Big Endian과 Little Endian은 알아도 Medium Endian이라는 것도 있다.
명확히 알기 위해서 http://en.wikipedia.org/wiki/Endianness 를 참조한다.

100번에 4A3B2C1D를 저장한다고 가정해 보자.
 
각 종류마다 저장방식이 다르다.
 
Big-endian
100 101 102 103
... 4A 3B 2C 1D ...


Little-endian

100 101 102 103
... 1D 2C 3B 4A ...



Middle-endian

100 101 102 103
... 3B 4A 1D 2C ...

or alternatively:

100 101 102 103
... 2C 1D 4A 3B ...



middle endian방식은 mixed라고 불려진다.

운영체제가 지원하는 endian 지원 방식을 헛갈리지 말자~

'OS concept' 카테고리의 다른 글

Mongo DB  (0) 2011.12.12
구글 크롬 OS 30분 맛보기  (0) 2011.05.20
임베디드 시스템의 기본 #1  (0) 2006.07.20
실시간 운영체제 종류  (0) 2006.01.23
Synchronization primitives  (0) 2005.02.28
Posted by '김용환'
,