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-Thread: a07f3367d7,4d3e59455e947c5e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Received: by 10.216.113.70 with SMTP id z48mr94656weg.6.1344572169631; Thu, 09 Aug 2012 21:16:09 -0700 (PDT) Path: n2ni53891528win.0!nntp.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feed.xsnews.nl!border-2.ams.xsnews.nl!news.panservice.it!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Suitability of Ada as a general-purpose language Date: Fri, 3 Aug 2012 20:21:42 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Date: Fri, 3 Aug 2012 20:21:42 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="0e44dd4a3c4e0a6e83a86f947fb780ae"; logging-data="26130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19U/qhwXhlSO+3xE9I2Y9QXBcHZEZyIDAA=" User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Cancel-Lock: sha1:2y6/BiNH853hkzFGugnWyCQ8WzA= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-08-03T20:21:42+00:00 List-Id: On Fri, 03 Aug 2012 21:21:15 +0200, Yannick Duchêne (Hibou57) wrote: > Does that mean that “not decently sized” applications are not Ada's > target? Then, any one can define what “decently sized” is? It's not fair > that when a compiler fails in an aspect (an aspect which is not relevant > to its main audience, I agree), to get the point away with pretexts. > > The Hello World program here, is a place‑holder for tiny applications. > There may be good reasons for people to expect tiny applications to have > tiny executable images: there may be a lot of them, whose size > cumulates, and they may be launched often for a short time, in sequence; > better a tiny executable image here. Then, the big Hello World image can > give people an honest enough feeling of bloating or else poor > dependencies management capabilities. > > GNAT producing big executable images for tiny applications, and GNAT > purpose not being at producing efficient executable image for that kind > of application, is not a reason to push that issue away. You make a good case. And I am seeing executables of under 1K on the AVR, so it is definitely possible (though without much library or any RTS). I haven't tried linker settings or "strip" or other tools to see how small an executable I can get on Linux. But reducing executable size shouldn't be something we have to work to achieve; the tools should do it for us. Randy points out that non-Ada specific tools may not be well suited to helping us... - Brian