comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: ada -> C translator
Date: 1997/04/08
Date: 1997-04-08T00:00:00+00:00	[thread overview]
Message-ID: <dewar.860507849@merv> (raw)
In-Reply-To: 5icuf7$4k1$1@goanna.cs.rmit.edu.au


iRichard O'Keefe said

<<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).>>

I gave many other examples.

The problems that people have in understanding the nature of target
dependence make me think that people do not really understand what we
are talking about. They still probably are thinking in terms of translation
into reasonably high level C, but that's NOT possible. What we are talking
about is generating very low level C, much of it at the level of semantics
of assembly, and much of it incorporating target semantics.

And if you do not think it is possible to write portable Ada programs that
interface with COBOL, you completely misunderstand the intention of section
B.4 of the RM.

Sure it might be the case that a partiular source program does not use this
feature of Ada 95, and you only need a subset of the language compiled.

Well that of course changes the viewpoint. If you restrict the subset
severely enough (no exceptions, pragma suppress assumed, no nested 
procedures, no variant records etc. etc. etc.), then you WILL be able
to translate the Ada subset directly into C.

But if you want to cover the whole language, even if you restrict yourself
to the required part of the language, you will find situations in which you
have to play low level games, and where it is hard, or probably impossible,
to avoid target dependences in the generated C code.





  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       ` Richard Kenner
1997-04-05  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                 ` 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-08  0:00                 ` Richard A. O'Keefe
1997-04-08  0:00                   ` William Clodius
1997-04-09  0:00                     ` Fergus Henderson
1997-04-08  0:00                   ` Robert Dewar [this message]
     [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