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,146e39fd3921c79f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed1.ip.tiscali.net!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Newsgroups: comp.lang.ada Subject: Re: binary size (gnat+win console) References: From: Ludovic Brenta Date: Mon, 02 Aug 2004 07:16:44 +0200 Message-ID: <87smb686gz.fsf@insalien.org> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:lwi0rh9XrwgO8ANY9aCFfyONWCc= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 02 Aug 2004 07:16:33 CEST NNTP-Posting-Host: 83.134.238.190 X-Trace: 1091423793 dreader2.news.tiscali.nl 62363 83.134.238.190:34852 X-Complaints-To: abuse@tiscali.nl Xref: g2news1.google.com comp.lang.ada:2493 Date: 2004-08-02T07:16:33+02:00 List-Id: Adrian Knoth writes: > Andi wrote: > >> a simple "hello-world" binary takes 219kb after building!? > > Strange. > > ls -l Hello > -rwxr-xr-x 1 adi users 21193 Aug 2 00:29 Hello > strip Hello > ls -l Hello > -rwxr-xr-x 1 adi users 7668 Aug 2 00:29 Hello > > Compiler is gnat-3.15p with Ludovic's Debian-backports. > > But I wouldn't care too much about executable size. I guess > having a more complex application wouldn't raise the size > in a linear way, it's just the usual overhead (constant amount). I would suppose that most of the difference comes from linking statically against libgnat and/or MinGW or Cygwin on Windows. On Debian, gnat links dynamically by default. -- Ludovic Brenta.