retagged by
240 views
0 votes
0 votes
How we define big endian and little endian, word alignment ?
retagged by

1 Answer

Best answer
3 votes
3 votes

Lets say word size is 4 bytes and the corresponding bytes be W, X, Y and Z. Now if the word is to be stored at address 0-3, we have two options:

  1. W X Y Z - lowest address taken by highest order byte
  2. Z Y X W - lowest address taken by lowest order byte

First one is big-endian (most significant byte first) and second one is little-endian (least significant byte first).

selected by

No related questions found