comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: 64 bit codes
Date: Tue, 27 Sep 2011 06:09:06 -0700 (PDT)
Date: 2011-09-27T06:09:06-07:00	[thread overview]
Message-ID: <e47de46f-b582-47f4-a8de-c95e9eb46e51@fx14g2000vbb.googlegroups.com> (raw)
In-Reply-To: j5sbjm$a2v$1@news.albasani.net

Mok-Kong Shen wrote on comp.lang.ada:
> I have some computations that would be much more efficient, if done
> with 64-bit arithmetics ("natively") than with 32-bit arithmetics
> and I don't like to take the trouble/"risk" of having a 2nd OS on my
> PC (I don't think currently to possess even the proper knowledge to
> do that at all).

I'm not sure what you mean exactly by "64-bit arithmetic".  If you
require 64-bit addresses, then yes you need a 64-bit compiler.  But if
you only need 64-bit floating point numbers, the 32-bit compiler can
provide them just fine.  In fact, on Intel hardware, Long_Floats are
normally 80 bits wide IIRC.  Similarly, I think Long_Long_Integer is
64 bits wide even with a 32-bit compiler.

> On the other hand, as outsider I surmise that providing a 64-bit
> Windows version doesn't involve much work, since there is already a
> 32-bit version. It's essentially just a replacement of the included
> gcc from the 32-bit version to the 64-bit version, isn't it?

No, there is more to it than that.  Given that most of GNAT is written
in Ada, one requires a 64-bit Ada compiler to produce the first 64-bit
Ada compiler; that's the classic catch-22 aka bootstrapping process.
In the case of GNAT, this problem is exacerbated by the requirement to
also bootstrap the run-time library.

I see that GNAT Pro[1] supports 64-bit Windows; this means that they
have completed the bootstrapping process already.  So, if AdaCore tell
you that the GPL 2011 Edition simply won't support 64-bit, and you are
impatient, and really need a 64-bit version of GNAT, you should ask
AdaCore to provide GNAT Pro to you.

[1] http://www.adacore.com/home/products/gnatpro/supported_platforms/

--
Ludovic Brenta.



  reply	other threads:[~2011-09-27 13:09 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-27  6:59 64 bit codes Mok-Kong Shen
2011-09-27  7:48 ` Georg Bauhaus
2011-09-27  9:04   ` Mok-Kong Shen
2011-09-27  9:14     ` Ludovic Brenta
2011-09-27  9:54       ` Mok-Kong Shen
2011-09-27 10:08         ` Ludovic Brenta
2011-09-27 11:21           ` Mok-Kong Shen
2011-09-27 13:09             ` Ludovic Brenta [this message]
2011-09-27 13:25               ` Georg Bauhaus
2011-09-27 13:51                 ` Mok-Kong Shen
2011-09-27 14:15                   ` Mok-Kong Shen
2011-09-27 14:40                     ` Ludovic Brenta
2011-09-27 13:48               ` Mok-Kong Shen
2011-09-27 14:50                 ` Ludovic Brenta
2011-09-27 15:49                   ` Bill Findlay
2011-09-28  9:53                     ` Georg Bauhaus
2011-09-28 10:36                       ` Ludovic Brenta
2011-09-28  0:38                 ` Rugxulo
2011-09-29 17:08                   ` Rugxulo
2011-09-29 19:20                     ` Pascal Obry
2011-09-29 19:26                       ` Ludovic Brenta
2011-09-29 19:35                         ` Pascal Obry
2011-09-29 19:38                           ` Pascal Obry
2011-10-06  2:48                     ` mjamesb
2011-09-27 15:39               ` Simon Wright
2011-09-27 19:13                 ` Simon Wright
2011-09-28  7:16                   ` Georg Bauhaus
2011-09-28 12:26                     ` Fritz Wuehler
2011-09-28 13:41                       ` Yannick Duchêne (Hibou57)
2011-09-28 14:28                       ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox