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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b3d4bf1aa8fddd02 X-Google-Attributes: gid103376,public From: David C. Hoos, Sr. Subject: Re: ada2cpp Date: 2000/01/28 Message-ID: <86svea$oal$1@nnrp1.deja.com>#1/1 X-Deja-AN: 578872687 References: <20000109121316.27085.00001168@ng-bg1.aol.com> <86s1sc$1ei$1@nnrp1.deja.com> <3891AD32.EA362750@maths.unine.ch> <86sn03$hmj$1@nnrp1.deja.com> To: dennison@telepath.com X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) X-Http-Proxy: 1.1 x34.deja.com:80 (Squid/1.1.22) for client 205.149.60.17 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Fri Jan 28 20:50:20 2000 GMT X-MyDeja-Info: XMYDJUIDdhoossr Newsgroups: comp.lang.ada Date: 2000-01-28T00:00:00+00:00 List-Id: In article <86sn03$hmj$1@nnrp1.deja.com>, Ted Dennison wrote: > In article <3891AD32.EA362750@maths.unine.ch>, > Gautier 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.