Image:Endianessmap.svg

From Wikipedia, the free encyclopedia

Endianessmap.svg (SVG file, nominally 744 × 1052 pixels, file size: 13 KB)

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

Contents

[edit] Summary

Description
English: A tool to use data in little and big endian encodings.
Source

Traced from en:Image:Endianessmap.jpg with inkscape, cleaned up with vim.

Date

2007-08-23 (original upload date)

Author

Konrad Eisele

Permission
(Reusing this image)

See below.


[edit] Explanation

Here is an example of using the image:

[edit] Big endian

In Big-Endian: Say you would want to:

  • write "0x12345678" 32 bit into memory at addr "0"
  • read back 16 bit from address "2"

You would take the parts of the diagram for 32 bit and Big-Endian:

 Value in register:
 12345678
  A B C D  
 Register:
 |------->
  A B C D  32 bit access

 Memory:
 | A B C D  32 bit access address 0
 ---------
   0 1 2 3
   ^
   |-> map 0 here
   A B C D  
 Result in memory: 
 | 12345678  
 ---------
   0 1 2 3
   

Now you would want to read back 16 bit from address "2" in Big-Endian: Then you would use:

 Value in memory: 
 | 12345678  
 ---------
   0 1 2 3
 Memory:
 | A B C D  16 bit access 2
 ---------
   0 1 2 3
       ^
       |-> map 2 here
       |--->
       C D  

 Register:
    |-->|
 A B C D  16 bit access 
 Result in register: 
 | 00005678  
 ---------
   0 1 2 3

[edit] Little endian

In Little-Endian: Say you would want to :

  • write your "0x12345678" 32 bit into memory at addr "0"
  • read back 16 bit from address "2"

You would take the parts of the diagram for 32 bit and Little-Endian:

 Value in register:
 12345678
  A B C D  
 Register:
  A B C D  32 bit access
 <-------

 Memory:
  A B C D |  32 bit access 0
 ---------
  3 2 1 0
        ^
      <-| map 0 here
  A B C D  
 Result in memory: 
  12345678|  
 ---------
   3 2 1 0
   

Now you would want to read back 16 bit from address "2" in Little-Endian: Then you would use:

 Value in memory: 
  12345678 |
 -----------
   3 2 1 0
 Memory:
  A B C D |  32 bit access address 2
 ---------
  3 2 1 0
    ^
  <-| map 2 here
  C D  

 Register:
 A B C D  16 bit access
    |<--|
 Result in register: 
  00001234  
 ---------
   3 2 1 0

[edit] Licensing

The author of this work has published it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation license, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation license".

Aragonés | العربية | Asturianu | Български | বাংলা | ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী | Brezhoneg | Bosanski | Català | Cebuano | Česky | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Gaeilge | Galego | עברית | Hrvatski | Magyar | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Kurdî / كوردی | Latina | Lëtzebuergesch | Lietuvių | Bahasa Melayu | Nnapulitano | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Occitan | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | తెలుగు | ไทย | Türkçe | Українська | اردو | Tiếng Việt | Volapük | Yorùbá | ‪中文(中国大陆)‬ | ‪中文(台灣)‬ | +/-

Some rights reserved
Creative Commons Attribution iconCreative Commons Share Alike icon
This file is licensed under the Creative Commons Attribution ShareAlike license versions 2.5, 2.0, and 1.0

العربية | Български | Català | Česky | Dansk | Deutsch | English | Español | Euskara | فارسی | Français | עברית | Italiano | 日本語 | 한국어 | Lietuvių | Nederlands | Polski | Português | Русский | Svenska | தமிழ் | Türkçe | 中文 | 中文 | +/-

You may select the license of your choice.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current14:53, 18 October 2007744×1,052 (13 KB)Slashme (Traced from en:Image:Endiannessmap.jpg with inkscape, cleaned up with vim.)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):