File:Endianessmap.svg
Page contents not supported in other languages.
Tools
Actions
General
In other projects
Appearance
Size of this PNG preview of this SVG file: 424 × 600 pixels. Other resolutions: 170 × 240 pixels | 339 × 480 pixels | 543 × 768 pixels | 724 × 1,024 pixels | 1,448 × 2,048 pixels | 744 × 1,052 pixels.
Original file (SVG file, nominally 744 × 1,052 pixels, file size: 13 KB)
This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
Summary
DescriptionEndianessmap.svg |
English: A tool to use data in little and big endian encodings. |
Date | 23 August 2007 (original upload date) |
Source | Traced from en:Image:Endianessmap.jpg with inkscape, cleaned up with vim. |
Author | Konrad Eisele |
Permission (Reusing this file) |
See below. |
Explanation
Here is an example of using the image:
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: 81234561 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
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
Licensing
Konrad Eisele, the copyright holder of this work, hereby publishes it under the following licenses:
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.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
Attribution: Konrad Eisele | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic license.
Attribution: Konrad Eisele
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.
Items portrayed in this file
depicts
23 August 2007
13,590 byte
1,052 pixel
744 pixel
image/svg+xml
9f0a9775866e9e9e2eb879eb5d024870053066fe
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 14:53, 18 October 2007 | 744 × 1,052 (13 KB) | Slashme | Traced from en:Image:Endiannessmap.jpg with inkscape, cleaned up with vim. |
File usage
The following 3 pages use this file:
Retrieved from "https://en.wikipedia.org/wiki/File:Endianessmap.svg"