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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ac55ec18f7b0a53c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-04 19:06:38 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3B1C3EA0.40BC0EB4@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada and embedded applications References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 05 Jun 2001 02:06:38 GMT NNTP-Posting-Host: 63.180.3.88 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 991706798 63.180.3.88 (Mon, 04 Jun 2001 19:06:38 PDT) NNTP-Posting-Date: Mon, 04 Jun 2001 19:06:38 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Mon, 04 Jun 2001 19:04:42 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:8114 Date: 2001-06-05T02:06:38+00:00 List-Id: Chris Campbell wrote [concerning a post about languages for hand-held devices]: > > This is the exact text (and not my regurgutation of it which is vague). > > -- > [ ... ] > Ada probably is not reasonable for _most_ such devices. Ada requires > exception handling, which takes up quite a bit of memory. In > embedded devices, price matters a LOT, and more memory means a higher > price. Ada _does_ get used in embedded systems with budgets to > support it (e.g. the aerospace industry) but in the lower-end of the > market, exception handling makes it unusable (and the same goes for > C++). So, write it in C, with hand-written code for all possible exceptions, and in Ada, with exceptions and exception handlers, and see which one "takes up" more memory. The Ada compiler can optimize a lot of the overhead away, but the C compiler has no choice but to keep it in. Or is it good to save a few bytes but have your app crash every third time you run it? In that case Ada can be just as small as C. -- Jeff Carter "You tiny-brained wipers of other people's bottoms!" Monty Python & the Holy Grail