From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e56fd2619c02e35a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.8.229 with SMTP id u5mr28463042pba.0.1317129922791; Tue, 27 Sep 2011 06:25:22 -0700 (PDT) Path: lh7ni5979pbb.0!nntp.google.com!news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 27 Sep 2011 15:25:20 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: 64 bit codes References: <4e817fdb$0$7615$9b4e6d93@newsspool1.arcor-online.net> <213da3b7-f9d0-4a7d-b215-9992ee0f1a02@f6g2000vbm.googlegroups.com> <2a797a9e-f0e3-4fbe-8f40-b6787b4e2879@o11g2000yqc.googlegroups.com> In-Reply-To: Message-ID: <4e81cec1$0$6580$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 27 Sep 2011 15:25:21 CEST NNTP-Posting-Host: 5d601b98.newsspool3.arcor-online.net X-Trace: DXC=YW^E]nbM]PN^B]`=U:WelBMcF=Q^Z^V3H4Fo<]lROoRA8kFJLh>_cHTX3jM``j937Q`GWC X-Complaints-To: usenet-abuse@arcor.de Xref: news1.google.com comp.lang.ada:18164 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2011-09-27T15:25:21+02:00 List-Id: 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.