endianness是指定义的数组或内存中的排序还是使用的实际内存?(Does endianness refer to ordering within a defined array or memory or also the actual memory used?)

我无法用语言表达我的问题,但我认为我可以非常简单地表达它。 存储字符串abcd ,是Big和Little Endian之间的区别:

memory address | 0 | 1 | 2 | 3 | 4 | 5 | 6 | ... little endian | d | c | b | a | big endian | a | b | c | d |

或这个:

memory address | 0 | 1 | 2 | 3 | 4 | 5 | 6 | ... little endian | d | c | b | a | big endian | a | b | c | d |

我的文字尝试:“endianness”是指特定内存“数组”中字节的排序,在这两种情况下,数组从内存中的同一点开始,或者它是指使用的排序和实际数组?

I'm having trouble expressing my question in words, but I think I can express it visually quite simply. Storing the string abcd, is the difference between Big and Little Endian this:

memory address | 0 | 1 | 2 | 3 | 4 | 5 | 6 | ... little endian | d | c | b | a | big endian | a | b | c | d |

Or this:

memory address | 0 | 1 | 2 | 3 | 4 | 5 | 6 | ... little endian | d | c | b | a | big endian | a | b | c | d |

My attempt in words: does "endianness" refer to the ordering of bytes within a specific memory "array", where in both cases the array begins at the same point in memory, or does it refer to both the ordering and the actual array used?

最满意答案

字节顺序是指用于存储单个多字节数值的字节顺序。 第二个图像中的“大端”系统存储未对齐的4字节整数,这是系统通常无法做到的。

Endianness refers to the ordering of bytes used to store a single multi-byte numerical value. The "big endian" system in your second image is storing 4-byte integers unaligned, which no system would normally do.

endianness是指定义的数组或内存中的排序还是使用的实际内存?(Does endianness refer to ordering within a defined array or memory or also the actual memory used?)

我无法用语言表达我的问题,但我认为我可以非常简单地表达它。 存储字符串abcd ,是Big和Little Endian之间的区别:

memory address | 0 | 1 | 2 | 3 | 4 | 5 | 6 | ... little endian | d | c | b | a | big endian | a | b | c | d |

或这个:

memory address | 0 | 1 | 2 | 3 | 4 | 5 | 6 | ... little endian | d | c | b | a | big endian | a | b | c | d |

我的文字尝试:“endianness”是指特定内存“数组”中字节的排序,在这两种情况下,数组从内存中的同一点开始,或者它是指使用的排序和实际数组?

I'm having trouble expressing my question in words, but I think I can express it visually quite simply. Storing the string abcd, is the difference between Big and Little Endian this:

memory address | 0 | 1 | 2 | 3 | 4 | 5 | 6 | ... little endian | d | c | b | a | big endian | a | b | c | d |

Or this:

memory address | 0 | 1 | 2 | 3 | 4 | 5 | 6 | ... little endian | d | c | b | a | big endian | a | b | c | d |

My attempt in words: does "endianness" refer to the ordering of bytes within a specific memory "array", where in both cases the array begins at the same point in memory, or does it refer to both the ordering and the actual array used?

最满意答案

字节顺序是指用于存储单个多字节数值的字节顺序。 第二个图像中的“大端”系统存储未对齐的4字节整数,这是系统通常无法做到的。

Endianness refers to the ordering of bytes used to store a single multi-byte numerical value. The "big endian" system in your second image is storing 4-byte integers unaligned, which no system would normally do.