[LLVMdev] x86 Intel Syntax and MASM 9.x

Chris Lattner clattner at apple.com
Tue Jun 16 15:28:54 PDT 2009


On Jun 16, 2009, at 3:12 PM, David Greene wrote:

> On Tuesday 16 June 2009 09:48, Aaron Gray wrote:
>
>> Appently the GAS Intel backend has flaws and does not work  
>> correctly anyway
>> so the X86IntelAsm backend is designed only to target MASM anyway.
>
> gas Intel syntax is indeed broken in LLVM.  I'd love to make it work  
> but
> my work has not (yet) allocated time for that.  Maybe I can hack  
> LLVM on
> the weekends.  :)
>
> The above discussion leads me to believe there are fundamental  
> conflicts
> between MASM and gas syntax.
>
> Is NASM any better than MASM?
>
> I would hate for MASM to impose draconian restrictions on the Intel  
> asm
> printer for all targets.

Personally, I'd rather just bring up a PE COFF writer and use the masm  
backend for "debugging".

-Chris



More information about the llvm-dev mailing list