[LLVMdev] how to compile asm output for x86 with Micorsoft's ML

Chris Lattner clattner at apple.com
Thu Jan 21 14:56:52 PST 2010


On Jan 21, 2010, at 2:01 PM, Jim Crafton wrote:

>> Nope, llvm's .s output is only compatible with GAS and other at&t  
>> syntax
>> assemblers.  It turns out that MASM syntax is highly ambiguous and  
>> MASM is
>> not production quality for use by a compiler.  This is why visual  
>> studio
>> doesn't go through it.  Long term, we'd like LLVM to be able to  
>> write out .o
>> files directly, if you're interested in adding PECOFF support, that  
>> would be
>> very nice :)
>
> Crapola. I was afraid that was going to be the case. This was
> originally something to do to have fun playing with Objective C, I'm
> not sure PECOFF support would fall under that :)  Any idea how nasty
> that would be?
> Oh well, I guess the idea of doing this on windows isn't going to
> happen anytime soon.

Why not just install the cygwin assembler?

-Chris



More information about the llvm-dev mailing list