[LLVMdev] Is the llvm ARM support big endian elf/obj output?

Anton Korobeynikov anton at korobeynikov.info
Mon Apr 22 23:53:22 PDT 2013


>> I guess he need to change the data layout string in
>> ARMTargetMachine::ARMTargetMachine (ARMTargetMachine.cpp)
>> from "e" to "E" to get big endian output?
>
> That would be a start, but I'd expect a significant number of bugs
> where the backend writers have assumed ARM was little-endian
> (lib/Target/Mips, which *does* support both, has many more endian
> checks in the code than ARM).
Also note that NEON stuff is "almost" little-endian. So, huge changes
will be needed here.

--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list