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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Size of linked program increasing with new version of GNAT. Date: Tue, 30 Dec 2014 15:58:57 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <7f38a07d-3f73-432c-8647-e3a7dcf43637@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1419976738 1562 24.196.82.226 (30 Dec 2014 21:58:58 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 30 Dec 2014 21:58:58 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:24297 Date: 2014-12-30T15:58:57-06:00 List-Id: "Tony" wrote in message news:c702cb35-a051-4a0b-b7e7-41384fb487e3@googlegroups.com... > On Tuesday, December 30, 2014 12:56:43 AM UTC+1, Randy Brukardt wrote: >> The size of Hello world tells one >> very little about the size and efficiency of a real program. > > I have written about 600 Ada programs at home. The average size of the > programs are 75 lines of code. > I never use tasks. These are my real programs. Really? I'm skeptical that you can do anything useful in 75 lines of code. After all, you can't even open a file properly in 75 lines of code. (That is, getting the name from the user or the command line, and with appropriate error handling.) About all you can do in that size is write a throw-away program, and by definition, one doesn't care too much about the "goodness" of the result of a throw-away program. (Plus, you're depending on the implementation-defined error handling in that case -- and that's hardly going to be free.) If you are "with"ing a bunch of library packages to and using them in the 75 lines, your real program size has to count the size of the libraries that you "with". Which is going to be a lot more than 75 lines. > "I never use tasks." Which eliminates ONE form of overhead. But one cannot (sensibly) write an Ada program that doesn't use exceptions (from implicit checks if nothing else - and you need the unhandled exception mechanisms); finalization is used by many of the language-defined packages; virtually every program needs the default storage pool; and so on. Sigh. Why I am I feeding the troll here? Gosh knows. Randy. Randy.