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,81cf52699486abe7 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Ada95 Strengths/Weaknesses. Date: 1999/09/28 Message-ID: <7sp8m9$a6e$1@nnrp1.deja.com>#1/1 X-Deja-AN: 529852878 References: <37EED7B8.245C0054@yukyonline.co.yuky> <7smp30$9aa1@news.cis.okstate.edu> X-Http-Proxy: 1.0 x30.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Sep 28 02:21:07 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-09-28T00:00:00+00:00 List-Id: In article <7smp30$9aa1@news.cis.okstate.edu>, dstarner98@aasaa.ofe.org wrote: > * C compilers have a standardized interface. OTOH, you can > distinuigsh Ada compilers by the required file names Are there really Ada compilers that have "required file names"? Certainly GNAT does not have required file names. In fact, unlike the case in C, there is in GNAT a default file naming convention that means that, when you reference a spec, you can do it just using the unit name (unlike the case in C, where you have to mention the actual file name of a header file, which is unpleasant, since it means that when file names change from one system to another, you have to modify the sources). If you don't think this is a problem, you should have to deal with the 8+3 limitations in early DOS C compilers, a *real* pain!!!! If you are using your own file names, that do not correspond to the GNAT defaults, then you have to specify the file names, but this is done in a separate file, not in the source files themselves. So this to me is one place that Ada clearly wins over C, rather than loses. > * C & C++ compilers will usually produce smaller and faster > code, albeit usually less than an order of magnitude. Well an order of magnitude would be a catastrophe, but in fact the statement is just false. If your Ada compiler produces junk code, get another one. In the case of GNAT, the compiler uses exactly the same code generator as the GNU C compiler or the G++ compiler, so for comparable source code, you get identical object code. Robert Dewar Sent via Deja.com http://www.deja.com/ Before you buy.