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, FREEMAIL_FROM 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.33.71 with SMTP id p7mr28515239pbi.1.1317131472146; Tue, 27 Sep 2011 06:51:12 -0700 (PDT) Path: lh7ni5990pbb.0!nntp.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!87.79.20.101.MISMATCH!newsreader4.netcologne.de!news.netcologne.de!news.albasani.net!.POSTED!not-for-mail From: Mok-Kong Shen Newsgroups: comp.lang.ada Subject: Re: 64 bit codes Date: Tue, 27 Sep 2011 15:51:10 +0200 Organization: albasani.net Message-ID: 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> <4e81cec1$0$6580$9b4e6d93@newsspool3.arcor-online.net> Mime-Version: 1.0 X-Trace: news.albasani.net r/I3PUgqy/3v9Irq3W9iKns/1AaE/meVusuTWmrEWMgMI36UDsvtPGt/pBpwN3pL25cxRozQtKcVtXg/iTSXSuml0f/EEWxBsj4F150jZrK+hgGv+RypEg8Y6pzkDFXD NNTP-Posting-Date: Tue, 27 Sep 2011 13:51:11 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="TrktW3CTwimuI1h8fsqdPbNYHwMWtgOMDdbg1IdowfaBd7cgsPRby8mn4kV0nDeTYK3SEYOXFahQJPhxyZBmIfaQvFYYMH5ZjkpWJstDF0iEpGbBKgH43SznNSBJJWk2"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 In-Reply-To: <4e81cec1$0$6580$9b4e6d93@newsspool3.arcor-online.net> Cancel-Lock: sha1:RzBiuPE0Hz7UKCzmqdpd2qGYGOU= Xref: news1.google.com comp.lang.ada:18166 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-09-27T15:51:10+02:00 List-Id: Am 27.09.2011 15:25, schrieb Georg Bauhaus: > 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. I tried the option -m64 on the gcc that is included in the ADA package, but failed. M. K. Shen