[fpc-pascal] PowerPC Linux and endian modes

Henry Vermaak henry.vermaak at gmail.com
Fri May 20 02:09:10 CEST 2011


On 19 May 2011 23:39, Seth Grover <sethdgrover at gmail.com> wrote:
> Greetings!
>
> Wikipedia (http://en.wikipedia.org/wiki/PowerPC#Endian_modes) states:
>
> "Most PowerPC chips switch endianness via a bit in the MSR (Machine
> State Register), with a second bit provided to allow the OS to run
> with a different endianness."
>
> So the way I am understanding this is that the PPC architecture is
> capable of running in little-endian mode depending on a register flag
> that can be set. And that's about the end of my knowledge on the
> subject.
>
> My question is this: does anyone have any experience with running PPC
> in little endian mode? And would FPC-compiled programs (specifically
> I'm cross compiling to powerpc-linux from x86_64-linux) targeted at
> PPC work in a little endian mode setup?

Sorry, I don't.  You definitely have to fiddle with the endian
settings under the relevant section of compiler/systems/i_linux.pas
before you build your cross compiler, though.

Henry



More information about the fpc-pascal mailing list