[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-dev
Subject:    Re: [LLVMdev] llvm-mc and endianess.
From:       Kuba Ober <kuba () mareimbrium ! org>
Date:       2014-03-06 15:37:39
Message-ID: 3D8E1120-2700-4671-9B01-A59DF1FCE651 () mareimbrium ! org
[Download RAW message or body]

>> Could somebody confirm my understanding and give me some tips about
>> endianess in llvm-mc?
> 
> At the MC level you need to make your *AsmInfo constructor set:
> 
>  IsLittleEndian = false;
> 
> Also make sure you pass false to the third argument to createELFObjectWriter().
> 
> FWIW there are several in-tree targets that support big-endian,
> such as ARM, MIPS and PowerPC.  SystemZ is big-endian only.
> It might help to compare with one of those.

Thanks Richard, it’s also exactly the information I needed. — Kuba
_______________________________________________
LLVM Developers mailing list
LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic