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=2.6 required=5.0 tests=BAYES_20,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!mnetor!uunet!seismo!sundc!hadron!inco!mack From: mack@inco.UUCP (Dave Mack) Newsgroups: comp.lang.ada Subject: Re: Compiling Ada into C Message-ID: <1361@inco.UUCP> Date: 18 Feb 88 22:57:51 GMT References: <2460@Shasta.STANFORD.EDU> <49@obie.UUCP> Reply-To: mack@inco.UUCP (Dave Mack) Distribution: na Organization: McDonnell Douglas-INCO, McLean, VA List-Id: In article <49@obie.UUCP> wes@obie.UUCP (Barnacle Wes) writes: >In article <2460@Shasta.STANFORD.EDU>, neff@Shasta.STANFORD.EDU (Randy Neff) writes: >> Why do people want to compile Ada into C? > >Your nine observations that follow this question are correct. They >are also obvious. If you were writing an Ada compiler that compiled >to assembly code, or directly to object code, you would also have to >take all of this into account. The simple fact is C is much more >portable than any assembler. If you write an Ada compiler that >compiles to Rolm 1666 assembler, the compiler can only generate code >for the 1666 and similar processors. If you write it to produces C, >you can run it on many processors, you just have to port the >executable (probably written in C itself) to the target machine. I have been trying (now and then) to write an Ada-to-C translator for the last couple of years, for the reasons you mention. This is, shall we say, somewhat nontrivial. Has anyone done this successfully? > /\ - " Against Stupidity, - {backbones}! > /\/\ . /\ - The Gods Themselves - utah-cs!utah-gr! > / \/ \/\/ \ - Contend in Vain." - uplherc!sp7040! > / U i n T e c h \ - Isaac Asimov - obie!wes ^^^^^^^^^^^^^^^^^^^^ BTW, Asimov was quoting Schiller. -- Dave Mack Master of BizZen McDonnell Douglas-Inco, Inc. DISCLAIMER: The opinions expressed 8201 Greensboro Drive are my own and in no way reflect the McLean, VA 22102 views of McDonnell Douglas or its (703)883-3911 subsidiaries. {uunet | sundc | rlgvax | netxcom | decuac}!hadron!inco!mack Support your local Turing Police. Delete GREG/NOWAK.