public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: LittleEndian
@ 2002-04-29 16:08 Robert Dewar
  2002-04-30  5:03 ` LittleEndian Allan Sandfeld Jensen
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Dewar @ 2002-04-29 16:08 UTC (permalink / raw)
  To: gcc, mirih, snowwolf, tprince

> Why would you want such an option?  If the code contains byte-order
> dependencies, it's unlikely that a compiler option would fix it.  If you're
> trying to port binary data files, good luck.


Most often the reason people want this is that they think it will automatically
solve the endianess problem in porting code or data from one machine to another.
That's wrong of course, but people live in hope :-)

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: LittleEndian
@ 2002-04-30  5:20 Robert Dewar
  0 siblings, 0 replies; 9+ messages in thread
From: Robert Dewar @ 2002-04-30  5:20 UTC (permalink / raw)
  To: dewar, gcc, snowwolf

> The above would make it possible to mark the places in the code where you 
> assume endianness, and as a minimum halt compilation on architectures that 
> doesnt support the assumed endian.

Any architecture can support either endianness in the weak sense of
supporting it for loads/stores. I agree with the utility of being
able to mark individual declarations. We did this in Realia COBOL
(COMP-4 was big endian, IBM compatible, COMP-5 was little endian,
Intel compatible, and a compiler flag determined whether plain
COMP was COMP-4 or COMP-5).

^ permalink raw reply	[flat|nested] 9+ messages in thread
* LittleEndian
@ 2002-04-28 23:32 Miri
  2002-04-29  8:22 ` LittleEndian Tim Prince
  0 siblings, 1 reply; 9+ messages in thread
From: Miri @ 2002-04-28 23:32 UTC (permalink / raw)
  To: 'gcc@gcc.gnu.org'

Hi,

I’m trying to port code from SUN-Solaris (Sparc) to  Linux using GCC 3.0.4.
I tried to compile  to littleEndian using –mlittle-endian – but its seems
that the new compiler not supports that option (writes that its not in spec
file).

Can you please help or give me a hint.

Thank you

Miri

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-04-30 21:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-29 16:08 LittleEndian Robert Dewar
2002-04-30  5:03 ` LittleEndian Allan Sandfeld Jensen
2002-04-30 14:03   ` LittleEndian Toon Moene
2002-04-30 14:12     ` LittleEndian Allan Sandfeld Jensen
2002-04-30 14:52       ` LittleEndian Toon Moene
  -- strict thread matches above, loose matches on Subject: below --
2002-04-30  5:20 LittleEndian Robert Dewar
2002-04-28 23:32 LittleEndian Miri
2002-04-29  8:22 ` LittleEndian Tim Prince
2002-04-29 14:52   ` LittleEndian Allan Sandfeld Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).