Skip to main content

Command Palette

Search for a command to run...

Big Endian vs Little Endian

Published
1 min readView as Markdown
Big Endian vs Little Endian
C
酷愛計算機技術Ardently Love Computer Technology 長期關註反洗錢反欺詐Long-term Focus on Anti-Money Laundering and Anti-Fraud 精通支付結算的技術、系統、流程和製度Proficient in the Technology, System, Process and Institution of Payment and Settlement

Microprocessor architectures commonly use two different methods to store individual bytes in memory. This difference is referred to as “byte ordering” or “endianness”.

  • Little Endian

Intel x86 processors store a two-byte integer with the least significant byte first, followed by the most significant byte. This is called little-endian byte ordering.

  • Big Endian

In big-endian byte order, the most significant byte is stored at the lowest memory address, and the least significant byte is stored at the highest memory address. Older PowerPC and Motorola 68k architectures often use big-endian. Big-endian is also used in network communications.

Byte ordering becomes significant when data is transferred between systems or processed by systems with different endianness. It's important to handle byte order correctly to ensure consistent data interpretation across diverse systems.


More from this blog

Penetration Test、Python、Weaponization

721 posts

微信 smartcat9999 反欺詐Anti-Fraud 反洗錢Anti-Money Laundering 反逃稅Anti-Tax Evasion 滲透測試Penetration Test 武器化Weaponization