Preferred endianness #656
Replies: 1 comment
-
Great topic! One note on terminology: we use "word" to denote an array of 4 field elements. So, words consist of field elements and not bytes. Field elements can be split up into bytes (8 bytes per element). Regarding endianness: we typically use little-ending order. So, a word is When a word is placed on the stack, it is arranged in "stack order" which is the reverse of the normal order. So, it appears on the stack as Bytes within an element are assumed to be arranged in the little endian order as well. So, for example, when we use We treat |
Beta Was this translation helpful? Give feedback.
-
Some simple questions about endianness on the VM.
Bytes enumeration
Given the word
W
with bytes0x04 0x03 0x02 0x01
, in big-endian format (most significant byte is0x04
). How should the bytes be named?Endianness on the stack
Would it be little endian or big endian?
*
marks the preferred denotationBeta Was this translation helpful? Give feedback.
All reactions