This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: LittleEndian


On Monday 29 April 2002 17:03, Tim Prince wrote:
> On Monday 29 April 2002 00:06, Miri wrote:
> > 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
>
> 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.

Because sparc supports both endians, and the ELF format already contains the 
necessary infomation to protect against wrongfull linking. 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]