[cfe-users] Compiling big-endian code on powerpc64le

Benjamin Kramer benny.kra at gmail.com
Mon Jul 6 17:05:01 PDT 2015


> On 01.07.2015, at 05:26, Andrei Borzenkov <arvidjaar at gmail.com> wrote:
> 
> GCC allows to build either little endian or big endian code on PowerPC
> using -mlittle-endian or -mbig-endian. As far as I know clang supports
> this option only on AArch64. Is there other options that allow it?
> I /think/ that selecting the right target could do it, like in
> 
> clang -target powerpc
> 
> Am I right?

LLVM doesn't support little endian 32-bit PowerPC currently. There is some support for little-endian ppc64 though, it can be enabled with '-target powerpc64-your-triple' or with '-mlittle-endian' (after r241528).

- Benjamin





More information about the cfe-users mailing list