View mode: basic / threaded / horizontal-split · Log in · Help
November 22, 2008
64 bits D compiler ?
Hi,
I'm wondering : why the D compiler can't produce x86_64 code ? All seems to be ready in the langage for 64 bits. I need to produce a .dll file in both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of the D Compiler or should I re-write my apps in C++ ?

@+
Vermi
November 22, 2008
Re: 64 bits D compiler ?
22.11.08 в 15:21 Vermi в своём письме писал(а):

> Hi,
> I'm wondering : why the D compiler can't produce x86_64 code ? All seems  
> to be ready in the langage for 64 bits. I need to produce a .dll file in  
> both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of  
> the D Compiler or should I re-write my apps in C++ ?
>
> @+
> Vermi

There is a LLVM D compiler (LDC for short) in works:
http://dsource.org/projects/ldc/

which will be able to do what you wants once it is released.
November 22, 2008
Re: 64 bits D compiler ?
"Vermi" <moi@vermi.fr> wrote in message 
news:gg8tgf$1077$1@digitalmars.com...
> Hi,
> I'm wondering : why the D compiler can't produce x86_64 code ? All seems 
> to be ready in the langage for 64 bits. I need to produce a .dll file in 
> both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of 
> the D Compiler or should I re-write my apps in C++ ?
>
> @+
> Vermi

I suppose I'm getting a bit behind the tech curve here, but is there a 
reason to compile to x86_64 other than just to speed things up on the 
already-rediculously-fact 64-bit processors? (or to access more than 4GB of 
ram, but then, how often does anyone need to write an app that needs to do 
that?)
November 22, 2008
Re: 64 bits D compiler ?
"Nick Sabalausky" <a@a.a> wrote in message 
news:gg8vk9$1gvd$1@digitalmars.com...
> "Vermi" <moi@vermi.fr> wrote in message 
> news:gg8tgf$1077$1@digitalmars.com...
>> Hi,
>> I'm wondering : why the D compiler can't produce x86_64 code ? All seems 
>> to be ready in the langage for 64 bits. I need to produce a .dll file in 
>> both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of 
>> the D Compiler or should I re-write my apps in C++ ?
>>
>> @+
>> Vermi
>
> I suppose I'm getting a bit behind the tech curve here, but is there a 
> reason to compile to x86_64 other than just to speed things up on the 
> already-rediculously-fact 64-bit processors? (or to access more than 4GB 
> of ram, but then, how often does anyone need to write an app that needs to 
> do that?)

"...already-ridiculously-fast..."

Sorry, momentarily forgot my newsgroup client doesn't have spellcheck (not 
that it would help with "fact" vs "fast")
November 22, 2008
Re: 64 bits D compiler ?
On Sat, Nov 22, 2008 at 1:25 PM, Denis Koroskin <2korden@gmail.com> wrote:

> 22.11.08 в 15:21 Vermi в своём письме писал(а):
>
>  Hi,
>> I'm wondering : why the D compiler can't produce x86_64 code ? All seems
>> to be ready in the langage for 64 bits. I need to produce a .dll file in
>> both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of the
>> D Compiler or should I re-write my apps in C++ ?
>>
>> @+
>> Vermi
>>
>
> There is a LLVM D compiler (LDC for short) in works:
> http://dsource.org/projects/ldc/
>
> which will be able to do what you wants once it is released.
>

But 64bit support on *Windows* is probably not gonna happen in any near
future

-Tomas
November 22, 2008
Re: 64 bits D compiler ?
Tomas Lindquist Olsen Wrote:

On Sat, Nov 22, 2008 at 1:25 PM, Denis Koroskin <2korden@gmail.com> wrote:

> 22.11.08 в 15:21 Vermi в своём письме писал(а):
>
>  Hi,
>> I'm wondering : why the D compiler can't produce x86_64 code ? All seems
>> to be ready in the langage for 64 bits. I need to produce a .dll file in
>> both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of the
>> D Compiler or should I re-write my apps in C++ ?
>>
>> @+
>> Vermi
>>
>
> There is a LLVM D compiler (LDC for short) in works:
> http://dsource.org/projects/ldc/
>
> which will be able to do what you wants once it is released.
>

But 64bit support on *Windows* is probably not gonna happen in any near
future

-Tomas
On Sat, Nov 22, 2008 at 1:25 PM, Denis Koroskin <span dir="ltr">&lt;<a href="mailto:2korden@gmail.com">2korden@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
22.11.08 в 15:21 Vermi в своём письме писал(а):<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
I'm wondering : why the D compiler can't produce x86_64 code ? All seems to be ready in the langage for 64 bits. I need to produce a .dll file in both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of the D Compiler or should I re-write my apps in C++ ?<br>

<br>
@+<br>
Vermi<br>
</blockquote>
<br></div>
There is a LLVM D compiler (LDC for short) in works:<br>
<a href="http://dsource.org/projects/ldc/" target="_blank">http://dsource.org/projects/ldc/</a><br>
<br>
which will be able to do what you wants once it is released.<br>
</blockquote></div><br>But 64bit support on *Windows* is probably not gonna happen in any near future<br><br>-Tomas<br>


There is a reason for 64 bits support. First :
64 bit support on windows is up, I'm using vista (*sight* for development purpose :/) 64 bits, it is fully functionnal.

I'm writing a taskbar replacement for the shell, and I need to use a hook to build application thumbs on Windows XP. The problem is :
A hook in a 32 bits dll can hook only 32 bits process.
A hook in a 64 bits dll can hook only 64 bits process.

I want my task bar to run on both 32 and 64 bits platforms, so I need a 64 bit version of my dll. Here is my problem.

Thanks for the link to ldc, I didn't knew about it.
November 22, 2008
Re: 64 bits D compiler ?
Vermi wrote:

> Hi,
> I'm wondering : why the D compiler can't produce x86_64 code ? All seems
> to be ready in the langage for 64 bits. I need to produce a .dll file in
> both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of
> the D Compiler or should I re-write my apps in C++ ?
> 
> @+
> Vermi

The dmd backend is 32-bit only. From what I understand of it, it's quite a
lot of work making a 64 backend and not enough of a priority for Walter
Bright. 

The only D compiler I know of that can produce 64-bit code is GDC. I don't
know if there is, or if it's possible to build a 64-bit version of GDC for
windows though.
November 22, 2008
Re: 64 bits D compiler ?
Lutger Wrote:

> Vermi wrote:
> 
> > Hi,
> > I'm wondering : why the D compiler can't produce x86_64 code ? All seems
> > to be ready in the langage for 64 bits. I need to produce a .dll file in
> > both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of
> > the D Compiler or should I re-write my apps in C++ ?
> > 
> > @+
> > Vermi
> 
> The dmd backend is 32-bit only. From what I understand of it, it's quite a
> lot of work making a 64 backend and not enough of a priority for Walter
> Bright. 
> 
> The only D compiler I know of that can produce 64-bit code is GDC. I don't
> know if there is, or if it's possible to build a 64-bit version of GDC for
> windows though.

I tried to build a custom version of GDC (64bits) based on Mingw-w64, but I don't know enough thoses projets to make it a success. I will try ldc, and if it not sufficient, I'll try to make another version of my code in C++.

@+
Vermi
November 23, 2008
Re: 64 bits D compiler ?
On Sat, 22 Nov 2008 07:58:08 -0500, Nick Sabalausky wrote:
> (or to access more than 4GB of ram, but then, how often does anyone
> need to write an app that needs to do that?)

Quite often when you need to work with large data sets with iterative 
algorithms where reloading data is to costly.

Take care,
Daniel
November 23, 2008
Re: 64 bits D compiler ?
Daniel de Kok wrote:
> On Sat, 22 Nov 2008 07:58:08 -0500, Nick Sabalausky wrote:
>> (or to access more than 4GB of ram, but then, how often does anyone
>> need to write an app that needs to do that?)
> 
> Quite often when you need to work with large data sets with iterative 
> algorithms where reloading data is to costly.
> 
> Take care,
> Daniel

Absolutely! Also I'll say computing is ridiculously fast when it's many 
orders of magnitude faster than the human at any task. We're so far from 
that, it's not even funny.

Andrei
Top | Discussion index | About this forum | D home