From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: 64 bit codes
Date: Tue, 27 Sep 2011 15:25:20 +0200
Date: 2011-09-27T15:25:21+02:00 [thread overview]
Message-ID: <4e81cec1$0$6580$9b4e6d93@newsspool3.arcor-online.net> (raw)
In-Reply-To: <e47de46f-b582-47f4-a8de-c95e9eb46e51@fx14g2000vbb.googlegroups.com>
On 27.09.11 15:09, Ludovic Brenta wrote:
> 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;
This will make the compiler itself be 64bit executables;
If I just want a compiler to produce 64bit executables,
any compiler will do:
$ arch
i386
$ file $(which gcc-4.0)
/usr/bin/gcc-4.0: Mach-O universal binary with 2 architectures
/usr/bin/gcc-4.0 (for architecture i386): Mach-O executable i386
/usr/bin/gcc-4.0 (for architecture ppc7400): Mach-O executable ppc
$ gcc-4.0 -m64 foo.c
$ file a.out
a.out: Mach-O 64-bit executable x86_64
$ ./a.out
-bash: ./a.out: Bad CPU type in executable
A 64bit compiler is not needed, just as none needs to run on a JVM
in order to produce Java byte code.
OTOH, I understand that the GNAT front end interact with the GCC
internals in non-trivial ways.
next prev parent reply other threads:[~2011-09-27 13:25 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 [this message]
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