Thread overview
COFF support for windows compiler
Aug 16, 2011
Klimov Max
Aug 16, 2011
Timon Gehr
Aug 17, 2011
Nick Sabalausky
Aug 17, 2011
Dmitry Olshansky
August 16, 2011
Do developers plan to realize compilation to coff format on windows? There are the cases when i have to use visual studio compiler that generates coff object files. For example, CUDA compiler now support only vc cl compiler. That's why i have to refuse D, because there are not any correct converter omf -> coff or native support of coff in dmd. But i like D very much. This is the issue, what about it?
August 16, 2011
On 08/16/2011 07:53 PM, Klimov Max wrote:
> Do�developers�plan�to�realize�compilation�to�coff�format�on�windows?
> There�are�the�cases�when�i�have�to�use�visual�studio�compiler�that
> generates�coff�object�files.�For�example,�CUDA�compiler�now�support
> only�vc�cl�compiler.�That's�why�i�have�to�refuse�D,�because�there
> are�not�any�correct�converter�omf�->�coff�or�native�support�of
> coff�in�dmd.�But�i�like�D�very�much.�This�is�the�issue,�what�about
> it?

Afaik the GNU D compiler will generate COFF on Windows. But that probably still won't be 100% compatible to Microsofts COFF.

https://bitbucket.org/goshawk/gdc/wiki/Home#!what-is-gdc
August 17, 2011
"Klimov Max" <klimroot@mail.ru> wrote in message news:j2eapu$8as$1@digitalmars.com...
> Dodevelopersplantorealizecompilationtocoffformatonwindows?
> Therearethecaseswhenihavetousevisualstudiocompilerthat
> generatescoffobjectfiles.Forexample,CUDAcompilernowsupport
> onlyvcclcompiler.That'swhyihavetorefuseD,becausethere
> arenotanycorrectconverteromf->coffornativesupportof
> coffindmd.ButilikeDverymuch.Thisistheissue,whatabout
> it?

There is Digital Mars's COFF2OMF, but it's not free (although it is inexpensine, IIRC):

http://www.digitalmars.com/ctg/coff2omf.html

Also, there's a linker called UniLink (or ulink?) that will link DMD's OMF files with MS's COFF. I don't have a link for that handy though.



August 17, 2011
On 17.08.2011 6:19, Nick Sabalausky wrote:
> "Klimov Max"<klimroot@mail.ru>  wrote in message
> news:j2eapu$8as$1@digitalmars.com...
>> Dodevelopersplantorealizecompilationtocoffformatonwindows?
>> Therearethecaseswhenihavetousevisualstudiocompilerthat
>> generatescoffobjectfiles.Forexample,CUDAcompilernowsupport
>> onlyvcclcompiler.That'swhyihavetorefuseD,becausethere
>> arenotanycorrectconverteromf->coffornativesupportof
>> coffindmd.ButilikeDverymuch.Thisistheissue,whatabout
>> it?
> There is Digital Mars's COFF2OMF, but it's not free (although it is
> inexpensine, IIRC):
>
> http://www.digitalmars.com/ctg/coff2omf.html
>
> Also, there's a linker called UniLink (or ulink?) that will link DMD's OMF
> files with MS's COFF. I don't have a link for that handy though.
>
>
That would be it, look for the latest ulnb0xxx.zip:
ftp://ftp.styx.cabel.net/pub/UniLink/
However recently some folks had trouble linking gtkD library with it.

-- 
Dmitry Olshansky