2016-10-22 74 views
0

我知道單字(4字節)變量(如Int32)中的Big Endianness和Little Endianness之間的差異。 我想知道如果我們在小字節序格式以下數據多字變量或對象(例如兩個字變量的Int64):多字對象中的大端排序與小端排序

 
-----------------> 
Lower Memory Address to Higher Memory Address 
b0 b1 b2 b3 |b4 b5 b6 b7 (b means byte) 
word0  |word1 

以下哪種下面的結構是大字節序將存儲的方式在記憶中? (我們的內存是32位帶寬和字節尋址,字方便和架構是MIPS) 結構1:

 
-----------------> 
Lower Memory Address to Higher Memory Address 
b3 b2 b1 b0 |b7 b6 b5 b4 
word0  |word1 

結構2:

 
-----------------> 
Lower Memory Address to Higher Memory Address 
b7 b6 b5 b4 |b3 b2 b1 b0 
word0  |word1 

回答

0

當我問一位教授,好像structure1是正確的答案。