|
|
|
|
|
by walki
1762 days ago
|
|
> it’s good for software robustness that file formats and hardware use different endianness, as it forces you to read things byte-by-byte rather than lazily assuming you can just read 4 bytes and cast them directly to an int32. Except that it is very bad for performance. As far as CPUs are concerned little-endian has definitely won, most CPU architectures that have been big endian in the past (e.g. PowerPC) are now little endian by default. If all new CPU architectures are little endian this means that within a decade or two there won't be any operating systems that support big endian anymore. |
|