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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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.11.199 with SMTP id s7mr28728651pbb.5.1317134549041; Tue, 27 Sep 2011 07:42:29 -0700 (PDT) Path: lh7ni6015pbb.0!nntp.google.com!news1.google.com!postnews.google.com!i9g2000yqe.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: 64 bit codes Date: Tue, 27 Sep 2011 07:40:47 -0700 (PDT) Organization: http://groups.google.com Message-ID: <58e99cf4-2c18-4600-9e50-61d822b6b205@i9g2000yqe.googlegroups.com> 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> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 X-Trace: posting.google.com 1317134548 10386 127.0.0.1 (27 Sep 2011 14:42:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 27 Sep 2011 14:42:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i9g2000yqe.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-Via: ICAP/1.0 192.168.152.6 X-Google-Web-Client: true X-Google-Header-Order: HUALESRCVNK X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Red Hat/3.6-2.el5 Firefox/3.6.13,gzip(gfe) Xref: news1.google.com comp.lang.ada:18168 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-09-27T07:40:47-07:00 List-Id: 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.