www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - 64 bits D compiler ?

reply Vermi <moi vermi.fr> writes:
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
Nov 22 2008
next sibling parent reply "Denis Koroskin" <2korden gmail.com> writes:
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.
Nov 22 2008
parent reply "Tomas Lindquist Olsen" <tomas.l.olsen gmail.com> writes:
Content-Disposition: inline

T24gU2F0LCBOb3YgMjIsIDIwMDggYXQgMToyNSBQTSwgRGVuaXMgS29yb3NraW4gPDJrb3JkZW5A
Z21haWwuY29tPiB3cm90ZToKCj4gMjIuMTEuMDgg0LIgMTU6MjEgVmVybWkg0LIg0YHQstC+0ZHQ
vCDQv9C40YHRjNC80LUg0L/QuNGB0LDQuyjQsCk6Cj4KPiAgSGksCj4+IEknbSB3b25kZXJpbmcg
OiB3aHkgdGhlIEQgY29tcGlsZXIgY2FuJ3QgcHJvZHVjZSB4ODZfNjQgY29kZSA/IEFsbCBzZWVt
cwo+PiB0byBiZSByZWFkeSBpbiB0aGUgbGFuZ2FnZSBmb3IgNjQgYml0cy4gSSBuZWVkIHRvIHBy
b2R1Y2UgYSAuZGxsIGZpbGUgaW4KPj4gYm90aCAzMiBhbmQgNjQgYml0cywgYnV0IEkgY2FuJ3Qu
IFdpbGwgd2Ugc2VlIHNvb24gYSA2NCBiaXRzIHZlcnNpb24gb2YgdGhlCj4+IEQgQ29tcGlsZXIg
b3Igc2hvdWxkIEkgcmUtd3JpdGUgbXkgYXBwcyBpbiBDKysgPwo+Pgo+PiBAKwo+PiBWZXJtaQo+
Pgo+Cj4gVGhlcmUgaXMgYSBMTFZNIEQgY29tcGlsZXIgKExEQyBmb3Igc2hvcnQpIGluIHdvcmtz
Ogo+IGh0dHA6Ly9kc291cmNlLm9yZy9wcm9qZWN0cy9sZGMvCj4KPiB3aGljaCB3aWxsIGJlIGFi
bGUgdG8gZG8gd2hhdCB5b3Ugd2FudHMgb25jZSBpdCBpcyByZWxlYXNlZC4KPgoKQnV0IDY0Yml0
IHN1cHBvcnQgb24gKldpbmRvd3MqIGlzIHByb2JhYmx5IG5vdCBnb25uYSBoYXBwZW4gaW4gYW55
IG5lYXIKZnV0dXJlCgotVG9tYXMK
Nov 22 2008
parent Vermi <moi vermi.fr> writes:
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.
Nov 22 2008
prev sibling next sibling parent reply "Nick Sabalausky" <a a.a> writes:
"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?)
Nov 22 2008
next sibling parent "Nick Sabalausky" <a a.a> writes:
"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")
Nov 22 2008
prev sibling parent reply Daniel de Kok <daniel nowhere.nospam> writes:
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
Nov 23 2008
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
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
Nov 23 2008
prev sibling parent reply Lutger <lutger.blijdestijn gmail.com> writes:
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.
Nov 22 2008
parent Vermi <moi vermi.fr> writes:
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
Nov 22 2008