Closed MarisaLovesUsAll closed 7 years ago
How did you verify the bitness?
--model
controls the model of Phobos/Druntime, not DMD. The bitness of DMD does not affect its code generation capabilities, 32-bit DMD can build 64-bit programs and vice versa.
The DigitalMars C++ compiler, used for building DMD, only supports Win32. Digger supports using Visual Studio to build a 64-bit DMD, but this is not currently exposed to the build
command.
Thanks for answers!
How did you verify the bitness?
1) DMD still crashes with «out of memory» when >4 Gb of memory is allocated (checked through Windows Task manager)
2) PE L
in the beginning of dmd.exe (opened it in Sublime Text).
The bitness of DMD does not affect its code generation capabilities, 32-bit DMD can build 64-bit programs and vice versa.
I know, but 32-bit DMD isn't working with >4 Gb RAM allocated. I'm building dash engine, and it uses CTFE pretty heavily.
The DigitalMars C++ compiler, used for building DMD, only supports Win32. Digger supports using Visual Studio to build a 64-bit DMD, but this is not currently exposed to the build command.
So can I build DMD with Visual Studio then, and how to do this?
By hand? Just use the Visual Studio solution file included with DMD's source code.
@CyberShadow Ok, thanks.
Tried with web interface and from console (--model=64). Digger built me a x86 version instead of x64 both times. Digger version: e5616cab41eb29397d253be3dca17eaa998d3539 Jul 21, 2015 Specified DMD version: 2.067