Ask HN: Is big-endian dead?
21–30 of 193 posts
Re: Ask HN: Is big-endian dead?
#22Earlier quoted context omitted.
Your scheme to byteswap little endian in hex displays falls over in the face of differing word sizes.
Not at all, you just list the whole dump right-to-left. Then it works out regardless of word size.
Re: Ask HN: Is big-endian dead?
#23Eh, haswell added the movbe instructions. And I wouldn't be surprised if someone in the RISCV world added big endian instructions (they're nice for network processing). And nearly every powerpc I've seen is big endian, FWIW.
Re: Ask HN: Is big-endian dead?
#24I think a couple of networking chips still use it.
Re: Ask HN: Is big-endian dead?
#25Earlier quoted context omitted.
Big-endian is the canonical form for storage and the wire because back when the Internet was designed most "pro" machines were big-endian: Sparc, old MIPS, old PPC, DEC Alpha, etc. All these are dead or dying now. It's easy enough to deal with BE files and protocols by just swapping bytes. I'm referring to hardware architectures. Are there still any big-endian chips out there? Does it still make sense to support big-…
Small pedantic correction from a former Alpha kernel hacker: DEC Alpha was Big Endian only for some rare Cray systems. Everything else was Little Endian.
Re: Ask HN: Is big-endian dead?
#26Intel added movBE (mov big endian) support in BM2 extension.
Networks are still Big Endian.
SPARC chips (and now RISC-V) are BIG Endian by default.
MIPS just became an independent company a few days ago and they have native Big Endian support.
Edit 1: I was wrong about Power8/9 LE/BE
Re: Ask HN: Is big-endian dead?
#27Re: Ask HN: Is big-endian dead?
#28Earlier quoted context omitted.
Not at all, you just list the whole dump right-to-left. Then it works out regardless of word size.
So the dump is ordered backwards, from top of memory to bottom? That seems harder for humans than little endian integers.
Re: Ask HN: Is big-endian dead?
#29Big Endian is still supported natively on POWER8/9 Intel added movBE (mov big endian) support in BM2 extension. Networks are still Big Endian. SPARC chips (and now RISC-V) are BIG Endian by default. MIPS just became an independent company a few days ago and they have native Big Endian support. Edit 1: I was wrong about Power8/9 LE/BE
RISC-V is little endian.
Re: Ask HN: Is big-endian dead?
#30Big Endian is still supported natively on POWER8/9 Intel added movBE (mov big endian) support in BM2 extension. Networks are still Big Endian. SPARC chips (and now RISC-V) are BIG Endian by default. MIPS just became an independent company a few days ago and they have native Big Endian support. Edit 1: I was wrong about Power8/9 LE/BE
That's not correct. Ubuntu is LE only and it looks like RHEL is also switching from BE to LE.
"The base RISC-V ISA has a little-endian memory system, but non-standard variants can provide a big-endian..."
SPARC and MIPS are dead.