Thread overview
windows d and 64 x86-64
Mar 08, 2007
Jakob Praher
Mar 08, 2007
Daniel Keep
Mar 08, 2007
janderson
Apr 12, 2007
Jakob Praher
Apr 12, 2007
Johan Granberg
Mar 08, 2007
Sean Kelly
March 08, 2007
hi,

I'd like to use d for some kind of system progrmaming project within a company that has to support windows 64 bit (windows 2003+) espesially in a VS.Net environment (so to say MS toolchain). I don't think I am able to pursuade them to switch to a mingw od cygwin environment.

Has anybody of you used the dmd compiler in tandem with the VS.NET environment in a 64 bit environment.

So to say: For instance build a 64bit dll with d and then link them to a 64 bit version of a MSVC application or PInvoke it using the CLR?

Are there some expierences regarding this setup? Pleas share them with me.

thanks in advance
-- Jakob
March 08, 2007

Jakob Praher wrote:
> hi,
> 
> I'd like to use d for some kind of system progrmaming project within a company that has to support windows 64 bit (windows 2003+) espesially in a VS.Net environment (so to say MS toolchain). I don't think I am able to pursuade them to switch to a mingw od cygwin environment.
> 
> Has anybody of you used the dmd compiler in tandem with the VS.NET environment in a 64 bit environment.
> 
> So to say: For instance build a 64bit dll with d and then link them to a 64 bit version of a MSVC application or PInvoke it using the CLR?
> 
> Are there some expierences regarding this setup? Pleas share them with me.
> 
> thanks in advance
> -- Jakob

DMD currently does not support 64-bit codegen.  Additionally, I highly doubt that anything produced by MS' tools can be read by DMD.  It may also be true vice-versa, but I've never had an opportunity to test.

	-- Daniel

-- 
Unlike Knuth, I have neither proven or tried the above; it may not even make sense.

v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP  http://hackerkey.com/
March 08, 2007
Jakob Praher wrote:
> hi,
> 
> I'd like to use d for some kind of system progrmaming project within a company that has to support windows 64 bit (windows 2003+) espesially in a VS.Net environment (so to say MS toolchain). I don't think I am able to pursuade them to switch to a mingw od cygwin environment.
> 
> Has anybody of you used the dmd compiler in tandem with the VS.NET environment in a 64 bit environment.
> 
> So to say: For instance build a 64bit dll with d and then link them to a 64 bit version of a MSVC application or PInvoke it using the CLR?
> 
> Are there some expierences regarding this setup? Pleas share them with me.
> 
> thanks in advance
> -- Jakob

I'm not sure about the 64-bit part (I assume its possible, DMD can certainly do 64-bit).  I think someone posted a little while ago how to use the MSVS linker to build DMD executables (I can't find the thread here).  I would search at bit longer however I've gotta run.

Also integration wise, people have done that before.  Check out the thread "D and MSVC .net 2002".

Hope that was helpful.
-Joel
March 08, 2007
Jakob Praher wrote:
> hi,
> 
> I'd like to use d for some kind of system progrmaming project within a company that has to support windows 64 bit (windows 2003+) espesially in a VS.Net environment (so to say MS toolchain). I don't think I am able to pursuade them to switch to a mingw od cygwin environment.
> 
> Has anybody of you used the dmd compiler in tandem with the VS.NET environment in a 64 bit environment.

No, though someone had a back-end that generated CLI code at one point.  Also, I was suddenly reminded of this this morning:

http://research.microsoft.com/phoenix/

It would take some work, but it might be interesting to see if the DMD front-end could be integrated with Phoenix as a shortcut to generating Win64 binaries.


Sean
April 12, 2007
I am afraid I cannot find a source for generating dmd 64bit object files. Is the backend still worked on?

-- Jakob
April 12, 2007
Jakob Praher wrote:

> I am afraid I cannot find a source for generating dmd 64bit object files. Is the backend still worked on?
> 
> -- Jakob

As far as I know there presently is no way for dmd to generate 64bit code, however the gdc compiler can (at least for linux) so you could start looking here dgcc.sf.net .