Feeds

What the Hell is… an Endian?

There's big ones and there's little ones, y'know

  • alert
  • submit to reddit

Internet Security Threat Report 2014

Updated When The Register first started as an email newsletter nearly five years ago, our motto was "The only good Endian is a dead Endian." But readers keep asking us questions such as "What is an Endian"? One of our readers has been good enough to provide us with a clear explanation of the topic. And another reader, has added his comments, which we've now put at the end. Reader Number Three has tipped in too. Thanks David. Er... that's it. Reader One Big Endian and Little Endian refer to how multi-byte operands are laid out in memory. Something like left-to-right versus right-to-left. Either scheme works fine, but any given combination of operating system, application sources, and application data files tend to want only the scheme they were initially programmed for. This is a historical accident of which chip, minicomputer, or mainframe the OS was initially written for. The term comes from Gulliver's Travels, where two warring societies can't stand the fact that their neighbors open up their hard-boiled eggs from the other (wrong) end. Like other recently-designed instruction sets (eg Mips, PowerPC, and recent Alphas), IA-64 supports both big- and little-endian memory conventions so that no OS communities are repelled and locked out by that issue. The hardware is neutral. But the software on top of it, the OS and compilers and utilities and file system and applications and data files, are still all one flavor or the other. PA-RISC's software base is all big-endian, whereas most other announced users of Merced are all little-endian. A side effect of this is that HP won't be sharing any software (even compilers or applications or Unix) with the rest of the Merced-based industry. SGI is now switching from MIPS to IA-64, with IA-32 as a stepping stone, and is consequently forcing its user base to switch from big-endian software conventions to little-endian (or to switch from SGI to HP or Sun). Merced's support for both forms of software endian-ness is important for HP, but this is technically trivial. Reader Two The phrase "endian" comes from a fairly well known (and amazingly short and lucid) paper titled "On Holy Wars and a Plea for Peace" by Danny Cohen of USC. It was published as Internet Engineering Note IEN137 on 1-April-1980, and was in IEEE Computer in October 1981. It was originally written for one of his graduate classes; twenty years old and still relevant. here is the text BTW - you didn't mention that Sun (the great satan of Solaris) is porting to Merced, too, and that Sun is traditionally big endian. Reader Three I can't believe that neither of the readers who sent you big endian/little endian descriptions actually described the difference! It's simply this: If the computer holds a number that's too large to be recorded in one byte, the question is whether the bytes are stored in linear memory with the most significant bits at the beginning and the least significant bits at the end, or vice versa. It's the difference between remembering the number "three hundred twenty-one" as 321 or 123. Each method has certain advantages and disadvantages. Whew! And I thought I'd only use my computer science background on Jeopardy :) ® Other What the Hell is... What the Hell is... Camino and Rambus?

Top 5 reasons to deploy VMware with Tegile

More from The Register

next story
Bono apologises for iTunes album dump
Megalomania, generosity and FEAR of irrelevance drove group to Apple deal
Facebook, Apple: LADIES! Why not FREEZE your EGGS? It's on the company!
No biological clockwatching when you work in Silicon Valley
Doctor Who's Flatline: Cool monsters, yes, but utterly limp subplots
We know what the Doctor does, stop going on about it already
Arab States make play for greater government control of the internet
Nerds told to get lost in last-minute power grab bid at UN meeting
Apple SILENCES Bose, YANKS headphones from stores
The, er, Beats go on after noise-cancelling spat
Zippy one-liners, broken promises: Doctor Who on the Orient Express
Series finally hits stride, but Clara's U-turn is baffling
Don't bother telling people if you lose their data, say Euro bods
You read that right – with the proviso that it's encrypted
10 Top Tips For PRs Considering Whether To Phone The Register
You'll Read These And LOL Even Though They're Serious
Stop ROBOT exploitation, cry striking Foxconn workers
HP downturn and automation eroding overtime on China's production lines
prev story

Whitepapers

Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Win a year’s supply of chocolate
There is no techie angle to this competition so we're not going to pretend there is, but everyone loves chocolate so who cares.
Why cloud backup?
Combining the latest advancements in disk-based backup with secure, integrated, cloud technologies offer organizations fast and assured recovery of their critical enterprise data.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
Saudi Petroleum chooses Tegile storage solution
A storage solution that addresses company growth and performance for business-critical applications of caseware archive and search along with other key operational systems.