Little-endian
Little-endian is a term used in computer science to describe a specific method of byte ordering in digital computers. It is a way of organizing the bytes of a word in memory, where the least significant byte (LSB) has the lowest address and the most significant byte (MSB) has the highest. This method is used in the storage of multibyte data types such as integers and floating point numbers in computer memory or during transmission over networks.
Overview[edit | edit source]
In a little-endian system, when a multibyte value is stored in memory, the least significant byte is stored at the smallest address and the most significant byte at the highest. For example, the 32-bit hexadecimal number 0x12345678 would be stored in memory as 78 56 34 12. This approach is opposite to big-endian, where the most significant byte is stored at the smallest address.
History[edit | edit source]
The term "little-endian" comes from Jonathan Swift's 1726 satire Gulliver's Travels, where it was used metaphorically to describe one of the reasons for a war between two fictional countries: the proper way to crack open a boiled egg. In the context of computer architecture, the term was popularized by Danny Cohen in 1980 in a paper titled "On Holy Wars and a Plea for Peace" which discussed the byte ordering wars of the time.
Usage[edit | edit source]
Little-endian byte ordering is used by many modern computer architectures, including the x86 architecture used in most personal computers, making it a widely adopted standard. Other architectures, such as ARM, can operate in either little-endian or big-endian mode, depending on the configuration.
Advantages and Disadvantages[edit | edit source]
One advantage of little-endian ordering is that it can be more efficient when performing certain arithmetic operations, as the least significant bytes, which are often the focus of calculations, are accessed first. However, it can be argued that little-endian is less intuitive than big-endian ordering when reading memory dumps, as the bytes appear in reverse order from what might be expected.
Comparison with Big-endian[edit | edit source]
The choice between little-endian and big-endian often comes down to the specific requirements of the application and the hardware architecture. While little-endian is more common in desktop computing, big-endian is often found in networking protocols, where it is sometimes referred to as network byte order.
See Also[edit | edit source]
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD