comp.lang.ada
 help / color / mirror / Atom feed
From: David C. Hoos, Sr. <david.c.hoos.sr@ada95.com>
To: dennison@telepath.com
Subject: Re: ada2cpp
Date: 2000/01/28
Date: 2000-01-28T00:00:00+00:00	[thread overview]
Message-ID: <86svea$oal$1@nnrp1.deja.com> (raw)
In-Reply-To: 86sn03$hmj$1@nnrp1.deja.com

In article <86sn03$hmj$1@nnrp1.deja.com>,
  Ted Dennison <dennison@telepath.com> wrote:
> In article <3891AD32.EA362750@maths.unine.ch>,
>   Gautier <gautier.demontmollin@maths.unine.ch> wrote:
> > > check this
> > > http://ada2cpp.co.il/
> >
> > How can it compete with a famous free translator
> > - the one that translates all Ada 83 and 95 directly into optimized
> > native machine code ?
>
> Gnat doesn't compile Ada83 code, just Ada 95.
>
Where did you ever get that idea?
Here is a small excerpt from the GNAT User's Guide, titled obscurely
enough "Compiling Ada 83 Programs"

Compiling Ada 83 Programs
-gnat83
Although GNAT is primarily an Ada 95 compiler, it accepts this switch
to specify that an Ada 83 program is to be compiled in Ada83 mode. If
you specify this switch, GNAT rejects most Ada 95 extensions and
applies Ada 83 semantics where this can be done easily. It is not
possible to guarantee this switch does a perfect job; for example, some
subtle tests, such as are found in earlier ACVC tests (that have been
removed from the ACVC suite for Ada 95), may not compile correctly.
However, for most purposes, using this switch should help to ensure
that programs that compile correctly under the -gnat83 switch can be
ported easily to an Ada 83 compiler. This is the main use of the
switch. With few exceptions (most notably the need to use <> on
unconstrained generic formal parameters, the use of the new Ada 95
keywords, and the use of packages with optional bodies), it is not
necessary to use the -gnat83 switch when compiling Ada 83 programs,
because, with rare exceptions, Ada 95 is upwardly compatible with Ada
83. This means that a correct Ada 83 program is usually also a correct
Ada 95 program.
-gnat95
This switch specifies normal Ada 95 mode, and cancels the effect of any
previously given -gnat83 switch.


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-01-28  0:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-09  0:00 Ada2C++ BRETTSYS1
2000-01-09  0:00 ` Ada2C++ Brian Rogoff
2000-01-10  0:00   ` Ada2C++ Ross
2000-01-10  0:00     ` Ada2C++ Jeff Carter
2000-01-10  0:00 ` Ada2C++ Tucker Taft
2000-02-01  0:00   ` Ada2C++ jedilowe
2000-02-01  0:00     ` Ada2C++ David Starner
2000-02-01  0:00       ` Ada2C++ Richard D Riehle
2000-02-02  0:00         ` Ada2C++ jedilowe
2000-01-14  0:00 ` Ada2C++ Frode Tenneboe
2000-01-14  0:00   ` Ada2C++ E. Robert Tisdale
2000-01-18  0:00     ` Ada2C++ Frode Tenneboe
2000-01-18  0:00     ` Ada2C++ Charles Hixson
2000-01-28  0:00 ` ada2cpp denizbey
2000-01-28  0:00   ` ada2cpp Pat Rogers
2000-01-28  0:00     ` ada2cpp Richard D Riehle
2000-01-28  0:00   ` ada2cpp Gautier
2000-01-28  0:00     ` ada2cpp Marin D. Condic
2000-01-28  0:00     ` ada2cpp Ted Dennison
2000-01-28  0:00       ` David [this message]
2000-01-28  0:00         ` ada2cpp Ted Dennison
2000-01-30  0:00           ` ada2cpp Gautier
2000-01-28  0:00   ` ada2cpp Ted Dennison
replies disabled

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