www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - COFF support for windows compiler

reply Klimov Max <klimroot mail.ru> writes:
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?
Aug 16 2011
next sibling parent Timon Gehr <timon.gehr gmx.ch> writes:
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
Aug 16 2011
prev sibling parent reply "Nick Sabalausky" <a a.a> writes:
"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.
Aug 16 2011
parent Dmitry Olshansky <dmitry.olsh gmail.com> writes:
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
Aug 16 2011