Related articles |
---|
[Help] Endian Problem rheeys@camars.kaist.ac.kr (Yunseok Rhee) (1998-09-13) |
Re: [Help] Endian Problem mtew@cds.duke.edu (Max TenEyck Woodbury) (1998-09-18) |
Re: [Help] Endian Problem meissner@cygnus.com (Michael Meissner) (1998-09-18) |
Re: [Help] Endian Problem zalman@netcom.com (1998-09-18) |
Re: [Help] Endian Problem albaugh@agames.com (1998-09-22) |
From: | albaugh@agames.com (Mike Albaugh) |
Newsgroups: | comp.compilers |
Date: | 22 Sep 1998 01:23:40 -0400 |
Organization: | Atari Games Corporation |
References: | 98-09-039 98-09-081 |
Keywords: | code, architecture |
I refrained from posting, assuming that somone else would,
but this thread seems to be running out without anybody else getting
around to the main point (IMHO).
Zalman Stern (zalman@netcom.com) wrote:
: Yunseok Rhee (rheeys@camars.kaist.ac.kr) wrote:
: : Conseqently, if any, I want to know how to generate the little-endian
: : executables in MIPS machines. Though it is impossible, please let me
: : know if you have any other idea with the problem.
: For example, if you just need MIPS executables from complete sources
: and don't have fixed compiler requirements, you could build a
: little-endian MIPS cross compile version of the GNU tool chain for the
: x86 system and do quite well.
This makes rather a large assumption: that the original
sources don't implicitly encode an expectation of BigEndian data.
Admittedly, this problem is less common than the reverse; a program
coming from the PC world where not only endianness, but alignment (or
the lack thereof) is assumed, sometimes in very subtle ways,
throughout the code. "Just recompile" assumes well-written source
which is, to quote Perry Mason "Facts not in evidence" :-)
But yes, Little-Endian MIPS is no big deal. Older DEC systems
with MIPS CPUS were LE, and many of our embedded products are too. If
one is using components originally designed for the PC, it is best not
to lean too heavily on the assurance of the sales-droid that they are
bi-endian :-)
Mike
| albaugh@agames.com, speaking only for myself
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.