[LLVMdev] x86 Intel Syntax and MASM 9.x

Aaron Gray aaronngray.lists at googlemail.com
Tue Jun 16 15:44:51 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".

You really need COFF object modules and a linker as you generally need other 
libraries linked in too.

Direct PE or COFF plus binutils linker could be stopgaps too.

Aaron




More information about the llvm-dev mailing list