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: 103376,6575b47ba54cee7c X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!217.73.144.45.MISMATCH!feeder2.ecngs.de!ecngs!feeder.ecngs.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Reducing the size of executables produced by GNAT Date: Wed, 13 Feb 2008 15:38:11 +0100 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <47b300d3$1@news.post.ch> References: <40e9c01a-8d31-4554-9d9b-18cce7834d56@s12g2000prg.googlegroups.com> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1202913494 17430 194.41.146.1 (13 Feb 2008 14:38:14 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Wed, 13 Feb 2008 14:38:14 +0000 (UTC) User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <40e9c01a-8d31-4554-9d9b-18cce7834d56@s12g2000prg.googlegroups.com> X-Original-NNTP-Posting-Host: w03duo.pnet.ch X-Original-Trace: 13 Feb 2008 15:38:11 +0100, w03duo.pnet.ch Xref: g2news1.google.com comp.lang.ada:19769 Date: 2008-02-13T15:38:11+01:00 List-Id: Hibou57 schrieb: > For a long time ago I'm looking for a way to reduce th esize of Ada > programs compiled with GNAT. See http://en.wikibooks.org/wiki/Ada_Programming/Basic#FAQ:_Why_is_.22Hello.2C_world.21.22_so_big.3F > With a simple Hello-World I cannot go below 45KB, which is very much > for a so simple program. Well, the record is 8kb for Linux-i686-Release. > I'm afraid of what it means : take long to initialize at startup ? (I > need fast application, for CGI on a Linux server), many unusefull > dependencies on external library ? etc, etc No nessesarily, static linked files are large but might load faster. All depends of course. If startup is important then guesswork won't help - you have to time it. BTW: I hope you use the most powerfully CGI binding available: http://adacl.sourceforge.net/pmwiki.php/Main/CommonGatewayInterface Note that AdaCL.CGI is the only CGI implementation which supports file upload. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com