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 07:40:47 -0700 (PDT)
Date: 2011-09-27T07:40:47-07:00	[thread overview]
Message-ID: <58e99cf4-2c18-4600-9e50-61d822b6b205@i9g2000yqe.googlegroups.com> (raw)
In-Reply-To: j5slql$vq4$1@news.albasani.net

Mok-Kong Shen wrote on comp.lang.ada:
>> I tried the option -m64 on the gcc that is included in the ADA package,
>> but failed.
>
> A related question: Could anyone tell how to install the gnu gcc as
> such? I see there is only one single file "gcc-4.6.1.tar" on the
> download sites and everything, in particular modules specific for all
> possible kinds of hardware, must therefore be in there and presumably
> it would consequently be very difficult to figure out how to properly
> proceed in order to obtain a compiler running on one's computer.

If you're going to build gnat for yourself, you should read [1].  In
summary: the "gcc" executable is only the "compiler driver"; it calls
the actual compiler for each source file, choosing the actual compiler
based on:

- the source language (Ada, C, C++, Fortran, Objective-C, Go, Java,
etc.)
- the target platform as specified with -m64 or other options

Hence the name "GNU Compiler Collection".

Therefore, for one host you can have M*N compilers, where M is the
number of programming languages supported and N is the number of
target platforms supported.  Georg happens to have 3 Ada compilers
installed on his Mac OS X machine (and probably as many C, C++ and
Objective-C compilers) but you're not so lucky.  GNAT GPL Edition only
comes with native compilers for C, Ada and possibly C++.

In theory, it should be possible to rebuild a 64-bit GNAT GPL Edition
from source by following the given instructions.  You'd first build a
cross-compiler (from 32-bit to 64-bit, making the -m64 option work)
then possibly a native 64-bit compiler.  That requires time and skills
because of all the needed tools.  If you succeed, I'd recommend
sharing the results of your work through the GNU Ada Project[2] on
SourceForge, which does not provide a 64-bit GNAT for Windows yet.
But I still think that installing a secondary operating system such as
Debian in a virtual machine would be less difficult than building GNAT
from source, especially on Windows.

[1] http://gcc.gnu.org/install/
[2] http://sourceforge.net/projects/gnuada/

--
Ludovic Brenta.



  reply	other threads:[~2011-09-27 14:42 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
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 [this message]
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