comp.lang.ada
 help / color / mirror / Atom feed
From: William Clodius <wclodius@lanl.gov>
Subject: Re: ada -> C translator
Date: 1997/04/08
Date: 1997-04-08T00:00:00+00:00	[thread overview]
Message-ID: <334A660E.52BF@lanl.gov> (raw)
In-Reply-To: 5icuf7$4k1$1@goanna.cs.rmit.edu.au


Richard A. O'Keefe wrote:
> <snip>
> Nor has Fergus said that "portable C is portable C and that is that".
> His claim, as I understood it, was that one can translate a source
> program that is intended to be portable to C that can adapt to particular
> targets but is usable on many.  Talking about interfacing to COBOL misses
> _his_ point, because in that case the source program isn't _intended_ to
> be portable (the porting target might not _have_ a COBOL compiler).
> <snip>

Both Robert Dewar and Fergus Henderson are talking past one another.
Robert argues that there are significant machine dependencies in the
translation of Ada, Fergus argues that any given machine dependency can
be handled using conditional compilation. Both statements are valid and
not in contradiction, but both are misleading.

Fergus's points are perfectly valid for Mercury, however, this thread is
not about compiling Mercury to C, but about compiling Ada to C. As a
logic programming language Mercury is much more distant from the machine
than is Ada. An Ada compiler to retain efficiency and correctness of
translation has to be more sensitive than Mercury to machine (and C
compiler) differences.  If the amount of code that is processor
independent is relatively small, then the usefullness of C as a portable
language vanishes. The problem is not that conditional compilation
cannot in principle be used to address these issues, which is what
Robert Dewar's arguments seem to suggest, but rather that in the case of
Ada what is possible in principle is impractical in practice.

-- 

William B. Clodius		Phone: (505)-665-9370
Los Alamos Nat. Lab., NIS-2     FAX: (505)-667-3815
PO Box 1663, MS-C323    	Group office: (505)-667-5776
Los Alamos, NM 87545            Email: wclodius@lanl.gov




  parent reply	other threads:[~1997-04-08  0:00 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-03  0:00 ada -> C translator Gabriel Monaton
1997-04-03  0:00 ` Robert A Duff
1997-04-03  0:00   ` Robert Dewar
1997-04-03  0:00     ` Robert Dewar
1997-04-04  0:00     ` Larry Kilgallen
1997-04-04  0:00       ` Robert Dewar
1997-04-05  0:00         ` Larry Kilgallen
1997-04-06  0:00           ` Robert Dewar
1997-04-04  0:00     ` Fergus Henderson
1997-04-04  0:00       ` Robert Dewar
1997-04-05  0:00         ` Fergus Henderson
1997-04-06  0:00           ` Robert Dewar
1997-04-07  0:00             ` Fergus Henderson
1997-04-07  0:00               ` Robert Dewar
1997-04-08  0:00                 ` Richard A. O'Keefe
1997-04-08  0:00                   ` Robert Dewar
1997-04-08  0:00                   ` William Clodius [this message]
1997-04-09  0:00                     ` Fergus Henderson
1997-04-08  0:00                 ` Fergus Henderson
1997-04-08  0:00                   ` Robert Dewar
1997-04-08  0:00                     ` William Clodius
1997-04-09  0:00                     ` Fergus Henderson
1997-04-09  0:00                       ` Robert Dewar
1997-04-09  0:00                         ` Fergus Henderson
1997-04-09  0:00                           ` Robert Dewar
1997-04-10  0:00                             ` Fergus Henderson
1997-04-09  0:00                       ` William Clodius
1997-04-04  0:00       ` Richard Kenner
1997-04-05  0:00         ` Fergus Henderson
     [not found] ` <lvlo6iwws8.fsf@sulu.fl.ensco.com>
1997-04-17  0:00   ` Lance Kibblewhite
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox