Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Dominic Sweetman <dom@algor.co.uk>
To: Ralf Baechle <ralf@oss.sgi.com>
Cc: Marc Karasek <marc_karasek@ivivity.com>,
	Linux MIPS <linux-mips@oss.sgi.com>
Subject: Re: Questions?
Date: Fri, 8 Mar 2002 09:58:47 GMT	[thread overview]
Message-ID: <200203080958.JAA27320@mudchute.algor.co.uk> (raw)
In-Reply-To: <20020307140754.A1817@dea.linux-mips.net>


Ralf Baechle (ralf@oss.sgi.com) writes:

> The MIPS ABI only covers big endian systems - every "real" MIPS UNIX
> system is big endian.

Except Decstations.  And Sony NeWS (remember that one).  And anything
running on those NEC Vr41xx systems which were designed for WinCE and
don't run big-endian at all.  There never was a consensus...

Mapping the MIPS ABI to little-endian presents no problems, as far as
I know: obviously since it's a binary compatibility standard it has to
make a choice...

> There is hardly any reason to choose a particular byteorder as
> usually endianess swapping takes so little CPU time that it isn't
> even meassurable but so I'm told there are exceptions.

I think it's often done for software-portability reasons; sometimes
because some hardware works both ways but has some irritating flaw in
its less-favoured organisation.

System software (kernels, libraries) tends to work both ways, because
it's written by people who thought about it.  Huge applications which
have only ever run on x86 and friends often don't work.

Finding the problems faster is a counsel of perfection: in practice, a
lot of us just want something that works, tomorrow.

Swapping probably is an unmeasurable load: even if it takes 8-10
instructions per word on a 500MHz CPU that's 200Mbytes/s.  But it is
ugly, particularly when it's required to restore correct byte sequence
because of a naive hardware interface (one, for example, which
connects the MIPS CPU data lines to the same-numbered PCI ones...)

So there are arguments on both sides, and players in both camps.  I
believe it's too late to corral all MIPS/Linux activity into one
endianness or the other.

Embrace bi-endianness!

-- 
Dominic Sweetman, 
Algorithmics Ltd
The Fruit Farm, Ely Road, Chittering, CAMBS CB5 9PH, ENGLAND
phone: +44 1223 706200 / fax: +44 1223 706250 / direct: +44 1223 706205
http://www.algor.co.uk

  parent reply	other threads:[~2002-03-08 10:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-06 17:25 Questions? Marc Karasek
2002-03-06 18:20 ` Questions? Steven J. Hill
2002-03-06 18:43   ` Questions? Marc Karasek
2002-03-06 18:54     ` Questions? Hartvig Ekner
2002-03-06 18:54       ` Questions? Hartvig Ekner
2002-03-06 19:06 ` Questions? Mike McDonald
2002-03-06 19:44 ` Questions? Matthew Dharm
2002-03-06 20:32 ` Questions? Bradley D. LaRonde
2002-03-07 10:59 ` Questions? Dominic Sweetman
2002-03-07 13:07 ` Questions? Ralf Baechle
2002-03-07 13:11   ` Questions? Geert Uytterhoeven
2002-03-07 13:18     ` Questions? Ralf Baechle
2002-03-07 17:56   ` Questions? Richard Hodges
2002-03-08  9:58   ` Dominic Sweetman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-03-06 20:40 Questions? Marc Karasek
2002-03-06 20:41 ` Questions? Matthew Dharm
2002-03-07 19:19 Questions? Siders, Keith
2002-03-07 21:00 ` Questions? Richard Hodges
2002-03-07 21:44 Questions? Siders, Keith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200203080958.JAA27320@mudchute.algor.co.uk \
    --to=dom@algor.co.uk \
    --cc=linux-mips@oss.sgi.com \
    --cc=marc_karasek@ivivity.com \
    --cc=ralf@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox