[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: binary data file and endianness and multiarch



On Sat, Sep 27, 2014 at 04:41:42AM +0200, Juliusz Chroboczek wrote:
> Standardising on big-endian is a good idea, not only because it is the
> canonical byte ordering, but also because little-endian arches tend to
> have more efficient byte-swapping instructions.

Except that the endianness war has been won by little-endian and thus your
code would optimize for an already tiny part of the population that is going
to only decrease: arm, mips switched from mostly be to almost only le, and
the newest Debian architecture is ppc64el.  hppa, sparc, m68k are dead,
which leaves s390 as the only arch that's not heading to little-endian,
and s390 has only a handful of installations.

-- 
// If you believe in so-called "intellectual property", please immediately
// cease using counterfeit alphabets.  Instead, contact the nearest temple
// of Amon, whose priests will provide you with scribal services for all
// your writing needs, for Reasonable and Non-Discriminatory prices.


Reply to: