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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,e03c5c4e93e2b73a,start X-Google-Attributes: gidfc89c,public X-Google-Thread: 1014db,67a2bb805a7929e6 X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,e03c5c4e93e2b73a,start X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,e03c5c4e93e2b73a,start X-Google-Attributes: gid103376,public From: z007400b@bc.seflin.org (Ralph Silverman) Subject: Re: [?] GNU g77 FORTRAN compiler witten in C? Date: 1997/11/06 Message-ID: <63skbb$9sl@nntp.seflin.org>#1/1 X-Deja-AN: 287422121 References: <63n9vl$84c@saluki-news.it.siu.edu> <345FAF90.41C6@lanl.gov> <63r2mp$r8t$1@helios.crest.nt.com> Organization: SEFLIN Free-Net Newsgroups: comp.lang.c,comp.lang.c++,comp.lang.ada,comp.unix.programmer Date: 1997-11-06T00:00:00+00:00 List-Id: Kaz Kylheku (kaz@helios.crest.nt.com) wrote: : In article , Dan Pop wrote: : >>The fact that the back end is written in C is a complication that may : >>also encourage the use of C for the front end, but definitly does not : >>force the use of C. Note that GNAT, the GNU Ada compiler, is written : >>almost entirely in Ada (at one time I believe its only C code was a C : >>main for compatibility with the back end). : > : >I can see two problems: : > : >1. How do I install it on my machine, which has no Ada compiler? : > : >2. How do I port it to a new architecture, which has no Ada compiler? : > : >The answer, in both cases, seems to be: find an Ada compiler written in C. : The actual answer is that you get GNAT binaries to bootstrap yourself---the : same way that you get GCC binaries with your Linux distribution or : same way you get your C compiler from a commercial vendor. : How would you port it to an architecture that has no Ada compiler? Once you : have a GNAT development system running, you can retarget the Ada compiler you : have. You can then compile programs for that previously unsupported platform. : You then compile the compiler itself and get it running on that platform! : (Easier said than done, of course, but in principle that is what you would do). : -- : "In My Egotistical Opinion, most people's C programs should be : indented six feet downward and covered with dirt." : -- Blair P. Houghton unix os, originally designed to be portable faces similar problem ... generally, solved similarly ... and this works well, as many implementations of this, and similar, systems shows ... aix hp-ux solaris ultrix sunos xenix coherent linux bsd etc. ... -- Ralph Silverman z007400b@bcfreenet.seflin.lib.fl.us