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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6575b47ba54cee7c X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!news.albasani.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Reducing the size of executables produced by GNAT Date: Thu, 14 Feb 2008 23:52:17 -0600 Organization: Jacob's private Usenet server Message-ID: References: <40e9c01a-8d31-4554-9d9b-18cce7834d56@s12g2000prg.googlegroups.com> <47b300d3$1@news.post.ch> <9c0a949b-ce82-4eda-99c9-02aace675266@d21g2000prf.googlegroups.com> <47b360b1$1_4@news.bluewin.ch> <3ff060f5-673b-4011-a0d1-1692d6e6f105@e10g2000prf.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1203058909 24525 69.95.181.76 (15 Feb 2008 07:01:49 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 15 Feb 2008 07:01:49 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1914 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 Xref: g2news1.google.com comp.lang.ada:19804 Date: 2008-02-14T23:52:17-06:00 List-Id: "Hibou57" wrote in message news:3ff060f5-673b-4011-a0d1-1692d6e6f105@e10g2000prf.googlegroups.com... On 13 f�v, 22:27, Gautier wrote: ... > * Consider using another Ada compiler than GNAT to that purpose. The fact is that GNAT is a monopol in this area. There use to be SmallAda, and �Ada, which were rahter Ada interpreters. Just look for "Ada compiler", on any search engine, and you will always be bringed to "GNAT", in one way in an other. Surely there are other Ada compilers. In this space, Aonix's compilers might work (but I think would be pricey). Janus/Ada would be ideal for what you are trying to do (it was designed from the ground up to minimize code size, since it was originally intended to run on 640K MS-DOS machines - Hello World executable sizes are around 60K - and programs that don't use Text_IO can be a lot smaller), but we have not yet done a Linux version. [It should be noted that a lot of the executable size of a (tiny) Windows program is made up of linkage tables that don't actually contribute to the (real) memory footprint of the program. A rough guess is that there is around 12K of such stuff.] [I'm always surprised at the size of Windows programs compared to their MS-DOS counterparts. Hello World had a 12K executable size on 32-bit MS-DOS using an extender - that's the same instructions, just different OS calls. Of course, the extender added some size. The 16-bit MS-DOS executables could be as small as 4K and no extender was needed.] --- OTOH, I tend to argee that the best solution is to run a custom web server, not CGI. The server that runs AdaIC.com is written in Ada, runs behind a business DSL line on an ordinary 900 MHZ Windows desktop, and rarely bogs down (occasionally for complex searches or when we're blasted with spam). That server not only serves normal pages, but it also runs a search engine, serves dynamic spotlights, and handles on-line surveys -- all with compiled Ada code (nothing is written in another language and all is linked together). [It's a relative of Tom's Smplsrvr, although it is quite a bit more complex.] Randy.