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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dab7d920e4340f12 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,dab7d920e4340f12 X-Google-Attributes: gid1014db,public From: Ken Garlington Subject: Re: C is 'better' than Ada because... Date: 1996/08/16 Message-ID: <32145622.1E4E@lmtas.lmco.com>#1/1 X-Deja-AN: 174740749 references: <31daad10.57288085@netline-fddi.jpl.nasa.gov> <31ebfbd7.330061022@netline-fddi.jpl.nasa.gov> <31EE19D1.6977@lfwc.lockheed.com> <31efe069.63062188@netline-fddi.jpl.nasa.gov> <4sopkp$dao@itfhps00.itf.hcsd.ca> <31f3c396.238311543@netline-fddi.jpl.nasa.gov> <01bb78b1$28455ec0$87ee6fce@timpent.airshields.com> <31F613F3.2781E494@escmail.orl.mmc.com> <01bb7bf9$b89a1740$96ee6fcf@timhome2> <01bb7da5$ef97cf00$96ee6fcf@timhome2> <31fff06f.186046460@netline-fddi.jpl.nasa.gov> <4tqlb0$be02@red.interact.net.au> <3212F127.41C67EA6@mailgw.sanders.lockheed.com> <32133CC0.1C62@itg-sepg.logicon.com> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Tactical Aircraft Systems mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.c x-mailer: Mozilla 2.02 (Macintosh; I; 68K) Date: 1996-08-16T00:00:00+00:00 List-Id: David Shochat wrote: > > > I also continually fight an issue that was mentioned earlier: size. > > Most of my projects have been PROM limited in executable size. I have > > found that most C compilers generate tighter, better optimized code. > > The added checking that Ada compilers provide before and after each > > subprogram call and assignment is unnecessary in many cases. > > If the added safety is not worth the cost for you, you can choose to > suppress the checks. It should also be pointed out that, even with checks _not_ suppressed, no Ada compiler I've ever used for embedded systems work does a check "before and after each subprogram call and assignment." If it did, I would consider it unsuitable for such work! The technoology for optimizing checks has been around for many years now. I would be interested to see some hard evidence that most C compilers for PROM-limited targets significantly outperform Ada compilers for the same targets, given equivalent applications (same level of run-time checking, equivalent algorithms, etc.) I do know that Tartan has released data for their DSP Ada compilers showing them to be quite competitive with respect to executable size. -- LMTAS - "Our Brand Means Quality"