May 14, 2014 Re: 64-bit DMD for windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manu | On Tuesday, 13 May 2014 at 13:53:36 UTC, Manu via Digitalmars-d wrote:
> On 13 May 2014 23:24, steven kladitis via Digitalmars-d
> <digitalmars-d@puremagic.com> wrote:
>> On Tuesday, 13 May 2014 at 13:16:50 UTC, steven kladitis wrote:
>>>
>>> On Monday, 12 May 2014 at 23:21:28 UTC, Nick Sabalausky wrote:
>>>>
>>>> On 5/12/2014 5:01 PM, Andrej Mitrovic via Digitalmars-d wrote:
>>>>>
>>>>> On 5/12/14, Nick Sabalausky via Digitalmars-d
>>>>> <digitalmars-d@puremagic.com> wrote:
>>>>>>
>>>>>> You don't need a 64-bit version: Compiling 64-bit programs doesn't
>>>>>> require a 64-bit compiler. Just install VC++, use the DMD 2.065 Win
>>>>>> installer, and then toss in the -m64 flag when compiling. Works fine.
>>>>>> Doesn't matter if DMD itself is 32-bit.
>>>>>
>>>>>
>>>>> As Vladimir in IRC reminded me, there is one use-case: You may need it
>>>>> for some intensive CTFE stuff (excessive memory allocations and no
>>>>> freeing by the compiler). That is, if you need more than 3/4 gigs.
>>>>>
>>>>
>>>> Right, there's certainly that. But that has nothing to do with whether
>>>> you're trying to build a 64-bit or 32-bit program, and (at least for
>>>> Windows) it isn't even an issue at all unless you actually are hitting that
>>>> limit (unlikely for a newcomer to D). It sounded like steven kladitis was
>>>> worried about just being able to create 64-bit programs. For that, it makes
>>>> no difference if the compiler itself is a 32- or 64-bit build.
>>>
>>>
>>> dmd -m64 ( windows ) says \bin\link not found :)
>>
>>
>> if the -m64 lets the compiled code use 64 bit registers and ints are now 64
>> bit then great! What is VC++, is it free?
>
> Pointers are 64bits.
> int is 32 bits, long is 64 bits.
> size_t is 64 bits.
>
> VC++ is Microsoft's compiler, DMD-x64 uses the de-facto standard
> Microsoft linker, since OPTLINK doesn't support 64bit.
> It is available for free.
I have installed it and am still unable to compile a 64 bit D program.
C:\d\dmd2\samples\d>dmd wc.d
C:\d\dmd2\samples\d>dmd -m64 wc.d
--- errorlevel -1073741515
|
May 14, 2014 Re: 64-bit DMD for windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to steven kladitis | On Wednesday, 14 May 2014 at 18:28:09 UTC, steven kladitis wrote: > On Tuesday, 13 May 2014 at 13:53:36 UTC, Manu via Digitalmars-d wrote: >> VC++ is Microsoft's compiler, DMD-x64 uses the de-facto standard >> Microsoft linker, since OPTLINK doesn't support 64bit. >> It is available for free. > > I have installed it and am still unable to compile a 64 bit D program. > > C:\d\dmd2\samples\d>dmd wc.d > > C:\d\dmd2\samples\d>dmd -m64 wc.d > --- errorlevel -1073741515 64-bit compilation on Windows doesn't work out of the box, because it uses the Microsoft linker and that requires its own setup. Here's how I did it: http://forum.dlang.org/thread/CALBgG1WH95Ysi-25AYL9WKn9TDnSUH2iGnX9tJSkFxYO87KBiQ@mail.gmail.com#post-hvdyyutbgehlefluvsup:40forum.dlang.org |
May 14, 2014 Re: 64-bit DMD for windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to steven kladitis | On 5/14/2014 2:28 PM, steven kladitis wrote:
> On Tuesday, 13 May 2014 at 13:53:36 UTC, Manu via Digitalmars-d wrote:
>> On 13 May 2014 23:24, steven kladitis via Digitalmars-d
>> <digitalmars-d@puremagic.com> wrote:
>>>
>>> if the -m64 lets the compiled code use 64 bit registers and ints are
>>> now 64
>>> bit then great! What is VC++, is it free?
>>
>> Pointers are 64bits.
>> int is 32 bits, long is 64 bits.
>> size_t is 64 bits.
>>
>> VC++ is Microsoft's compiler, DMD-x64 uses the de-facto standard
>> Microsoft linker, since OPTLINK doesn't support 64bit.
>> It is available for free.
>
> I have installed it and am still unable to compile a 64 bit D program.
>
> C:\d\dmd2\samples\d>dmd wc.d
>
> C:\d\dmd2\samples\d>dmd -m64 wc.d
> --- errorlevel -1073741515
If you use the Windows Installer for DMD after you've installed VC++, then it should automatically set everything up for you (I haven't tried it personally, but I know the DMD Win Installer people went to a lot of effort to make it work, so it should work).
Oh, I forgot to mention, you'll also need to install the Microsoft's Windows SDK (not sure if that's automatically done when installing VC++ or not.) So after VC++ and the WinSDK are installed, then run DMD's Windows installer, and you should be good.
Or you can manually setup DMD's sc.ini with the right paths to VC++ and the WinSDK (that's what I did), but it's probably easier to just run the DMD Windows Installer again after all the MS stuff is installed.
|
May 19, 2014 Re: 64-bit DMD for windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | On Wednesday, 14 May 2014 at 20:10:29 UTC, Nick Sabalausky wrote:
> On 5/14/2014 2:28 PM, steven kladitis wrote:
>> On Tuesday, 13 May 2014 at 13:53:36 UTC, Manu via Digitalmars-d wrote:
>>> On 13 May 2014 23:24, steven kladitis via Digitalmars-d
>>> <digitalmars-d@puremagic.com> wrote:
>>>>
>>>> if the -m64 lets the compiled code use 64 bit registers and ints are
>>>> now 64
>>>> bit then great! What is VC++, is it free?
>>>
>>> Pointers are 64bits.
>>> int is 32 bits, long is 64 bits.
>>> size_t is 64 bits.
>>>
>>> VC++ is Microsoft's compiler, DMD-x64 uses the de-facto standard
>>> Microsoft linker, since OPTLINK doesn't support 64bit.
>>> It is available for free.
>>
>> I have installed it and am still unable to compile a 64 bit D program.
>>
>> C:\d\dmd2\samples\d>dmd wc.d
>>
>> C:\d\dmd2\samples\d>dmd -m64 wc.d
>> --- errorlevel -1073741515
>
> If you use the Windows Installer for DMD after you've installed VC++, then it should automatically set everything up for you (I haven't tried it personally, but I know the DMD Win Installer people went to a lot of effort to make it work, so it should work).
>
> Oh, I forgot to mention, you'll also need to install the Microsoft's Windows SDK (not sure if that's automatically done when installing VC++ or not.) So after VC++ and the WinSDK are installed, then run DMD's Windows installer, and you should be good.
>
> Or you can manually setup DMD's sc.ini with the right paths to VC++ and the WinSDK (that's what I did), but it's probably easier to just run the DMD Windows Installer again after all the MS stuff is installed.
I see that this thread is over 3 years old. I am totally enjoying D. I love assembler programming. I am just dissapointed that there is simple way to compile 64 bit code as of 2014 in windows. I am still unable to compile 64 bit in windows 7 or 8.
|
May 20, 2014 Re: 64-bit DMD for windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to steven kladitis | Windows is out of favor for DMD's developers. |
May 20, 2014 Re: 64-bit DMD for windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to steven kladitis | On Monday, 19 May 2014 at 17:59:43 UTC, steven kladitis wrote:
> I see that this thread is over 3 years old. I am totally enjoying D. I love assembler programming. I am just dissapointed that there is simple way to compile 64 bit code as of 2014 in windows. I am still unable to compile 64 bit in windows 7 or 8.
How does the current 64 bit version of DMD fall short of your needs?
David
|
May 20, 2014 Re: 64-bit DMD for windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | On 5/20/14, Temtaime via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
> Windows is out of favor for DMD's developers.
Please stop spreading misinformation.
|
May 20, 2014 Re: 64-bit DMD for windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | Why mis ? For example. Linux : DMD can use GCC libs. DMD can compile and link 64 bit app. Windows : DMD cannot use both MSVC and MinGW libs. DMD cannot link 64 apps without installed MSVS. And it's stays there for a long time. |
May 20, 2014 Re: 64-bit DMD for windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | Please don't ask useful-less questions. One can tell all the advantages of 64 bits or you can use the Wikipedia. |
May 20, 2014 Re: 64-bit DMD for windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | On Tuesday, 20 May 2014 at 18:47:46 UTC, Temtaime wrote:
> Please don't ask useful-less questions.
> One can tell all the advantages of 64 bits or you can use the Wikipedia.
You might want to read my response again. I specifically asked "How does the current 64 bit version of DMD fall short of your needs?".
To put it in simpler terms: DMD is available for x64 Windows right now. What else do you want?
David
|
Copyright © 1999-2021 by the D Language Foundation