endiannness - Byte addressability vs. word addressability...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Byte addressability vs. word addressability In theoretical approach each row is called as WORD or LOCATION But in practice each location contains one byte information, which is referred as byte addressability
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Endianness The concept of endianness was first discussed in the literature by Cohen [81]. With respect to bytes, endianness has to do with the byte ordering of multi byte scalar values. Big endian-> MSB at lower most address Little endian-> MSB at upper most address Bi-endian-> supports both mode
Background image of page 2
Example 32 bit hexadecimal number 12345678 stored in byte addressable memory Big endian Little endian Add value 184 12 185 34 186 56 187 78 Add value 184 78 185 56 186 34 187 12
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Detailed example Struct { int a; //0x1112_1314 word int pad; //0x789a_bcde word double b; //0x2122_2324_2426_2728 double w char *c; //0x 3132_3334 word char d[7]; //‘A’,’B’,’C’,’D’,’E’,’F’,’G’ byte array short e; // 0x5152 half word int f; 0x 6162_6364 word } s;
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

endiannness - Byte addressability vs. word addressability...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online