Are there advantages to using little endianess?

Asked

Viewed 59 times

4

Today the main architectures use little endianess. Is there a clear advantage to its use? Should I worry when programming? In what situation?

1 answer

1


According to a response in the SE. little endian is more advantageous because values of various sizes can be interpreted with a valid address without any extra operation. There are those who contest this.

While it may be unintuitive for a human to have the most significant coming later, for the CPU it turns out well.

Most of the time you don’t have to worry about it. If you’re manipulating bits of data then you need to worry.

  • If you are reading bare of a communication interface (sockets, for example), this can interfere with your life. This is the same problem with proprietary serialization, needing to write from scratch. Is this the subject of a possible long-awaited answer? because apparently you’ve mastered all the other topics I know about... And it’s also important in the design of virtual machines

Browser other questions tagged

You are not signed in. Login or sign up in order to post.