[LLVMdev] Mod for using GAS with MS VC++
Aaron Gray
angray at beeb.net
Mon Jul 11 18:25:27 PDT 2005
>>>> Right, presumably Wndows does not set the TT. Should Windows or MSVC++
>>>> have one ? If so how do I go about it. Maybe Jeff should be involved ?
>>>
>>> It should/will. Currently there is no C/C++ front-end that works on
>>> native windows, but that doesn't really matter. In the future, we want
>>> to key off the target triple that makes sense.
>>>
>>> Cygwin uses: i686-pc-cygwin and mingw uses i686-pc-mingw32, so I think
>>> that using i686-pc-masm and i686-pc-nasm make sense.
>>
>> Okay, how do we implement that ?
>
> In your LLC changes, just check for *-nasm and/or *-masm in the same
> places that *-darwin and *-cygwin are.
Okay I will look into that tommorow.
>>>>> 4. The name forWindows isn't very specific, as there are multiple dev
>>>>> systems available on windows (including cygwin, mingw, masm, nasm,
>>>>> etc). Please use something more specific.
>>>>
>>>> Maybe it should be MSVC specific then ?
>>>
>>> Sure, but presumably you want to differentiate between nasm and masm (if
>>> they are not compatible) right?
>>
>> Right
>
> Then you need something more specific than 'isWindows'. I'd suggest,
> isNASM and isMASM.
'for' rather than 'is'
forMSVC ? There is more to it than that :(
I was going from the _WIN32 preprocessor symbol. So maybe 'forWIN32' if it
is actually needed.
Aaron
More information about the llvm-dev
mailing list