Do I need modify newlib code for endian changed?
Mon Jul 25 10:59:00 GMT 2011
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com] On Behalf Of Stuart Longland
> Sent: Sunday, July 24, 2011 12:46 PM
> To: firstname.lastname@example.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
> <email@example.com> 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).
More information about the Newlib