close

Endianness.jpg



Big-Endian
將變數中每個 byte 依序從記憶體中的低位址→高位址儲存
(高位的 byte 儲存在記憶體高位址)


Little-Endian
將變數中每個 byte 依序從記憶體中的高位址→低位址儲存
(高位的 byte 儲存在記憶體低位址)


Architecture

  • Big-Endian: x86, Intel, AMD
  • Little-Endian: Motorola, ARM, PowerPC, ARM, DEC Alpha, MIPS



File Format

  • Adobe Photoshop — Big Endian
  • BMP (Windows and OS/2 Bitmaps) — Little Endian
  • DXF (AutoCad) — Variable
  • GIF — Little Endian
  • IMG (GEM Raster) — Big Endian
  • JPEG — Big Endian
  • FLI (Autodesk Animator) — Little Endian
  • MacPaint — Big Endian
  • PCX (PC Paintbrush) — Little Endian
  • PostScript — Not Applicable (Text!)
  • POV (Persistence of Vision ray-tracer) — Not Applicable (Text!)
  • QTM (Quicktime Movies) — Little Endian (on a Mac!)
  • Microsoft RIFF (.WAV & .AVI) — Both
  • Microsoft RTF (Rich Text Format) — Little Endian
  • SGI (Silicon Graphics) — Big Endian
  • Sun Raster — Big Endian
  • TGA (Targa) — Little Endian
  • TIFF — Both, Endian identifier encoded into file
  • WPG (WordPerfect Graphics Metafile) — Big Endian (on a PC!)
  • XWD (X Window Dump) — Both, Endian identifier encoded into file
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 matis 的頭像
    matis

    Never give up

    matis 發表在 痞客邦 留言(0) 人氣()