This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: Do I need modify newlib code for endian changed?


> -----Original Message-----
> From: newlib-owner@sourceware.org 
> [mailto:newlib-owner@sourceware.org] On Behalf Of Stuart Longland
> Sent: Sunday, July 24, 2011 12:46 PM
> To: newlib@sourceware.org
> Subject: Re: Do I need modify newlib code for endian changed?
> 
> On 07/24/11 17:29, Liu wrote:
> > On Sun, Jul 24, 2011 at 7:25 AM, Stuart Longland 
> <redhatter@gentoo.org> wrote:
> >> On 07/24/11 09:21, Liu wrote:
> >>> Hi all,
> >>>
> >>> We've changed a CPU into little-endian from big-endian, 
> and binutils 
> >>> and gcc have been rewrite for little-endian.
> >>> Do I need modify newlib code for endian changed? If I do, 
> what should I do?
> >>
> >> Do you assume endianness anywhere?  If so, then yes.  If 
> not, then no.
> > I'm not sure about that, I know very few about newlib.
> > I working on a little-endian openrisc CPU, may you tell me 
> what to do?
> > 

Liu is asking if *newlib* needs to be modified, not if his
*own* code needs adaptation.

I expect newlib source code to be cogniziant of endianess.
However you will need to recompile newlib using the proper configuration
values -- which I don't know, unfortunately.  I expect something
like armbe -> armle (be/le big/litte endian).


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