comp.lang.ada
 help / color / mirror / Atom feed
From: "David Botton" <David@Botton.com>
Subject: Re: Executable size with GNAT for Windows and Linux
Date: Mon, 6 May 2002 07:41:04 -0400
Date: 2002-05-06T07:41:04-04:00	[thread overview]
Message-ID: <udcqvk3cj65f7e@corp.supernews.com> (raw)
In-Reply-To: m3znzev025.fsf@jupiter.solar.system

Try:

gnatmake -O2 XXXXX -largs -s

I also like to use UPX to compress the executable size (DLLs or even ActiveX
controls) I create with Ada.  http://upx.sourceforge.net/

David Botton


"Michael Bode" <m.g.bode@web.de> wrote in message
news:m3znzev025.fsf@jupiter.solar.system...
> I've found the size of executables to differ considerably under
> Windows and Linux.  The hello.adb that comes with gnat 3.13p has under
> Linux this size:
>
> gnatmake -g hello.adb
>
> -rwxr-xr-x    1 mb       users       23199 Mai  5 21:43 hello
> -rw-r--r--    1 mb       users         899 Jun 12  2000 hello.adb
> -rw-r--r--    1 mb       users         689 Mai  5 21:43 hello.ali
> -rw-r--r--    1 mb       users        5108 Mai  5 21:43 hello.o
> -rw-r--r--    1 mb       users          12 Jun 12  2000 hello.rsp
>
> whereas under Windows
>
> -rwxr-xr-x    1 root     root          899 Feb 25  2000 hello.adb
> -rwxr-xr-x    1 root     root          720 Mai  5 10:08 hello.ali
> -rwxr-xr-x    1 root     root       118306 Mai  5 10:08 hello.exe
> -rwxr-xr-x    1 root     root         4751 Mai  5 10:08 hello.o
> -rwxr-xr-x    1 root     root           12 Feb 25  2000 hello.rsp
>
> Any hints what can be done to reduce executable size under Windows?





      parent reply	other threads:[~2002-05-06 11:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-05 19:58 Executable size with GNAT for Windows and Linux Michael Bode
2002-05-06  0:44 ` Robert Dewar
2002-05-06 19:00   ` Michael Bode
2002-05-06 10:06 ` Preben Randhol
2002-05-06 10:14   ` Duncan Sands
2002-05-07  8:35     ` Joachim Schröer
2002-05-07  8:43       ` Duncan Sands
2002-05-06 19:02   ` Michael Bode
2002-05-06 11:41 ` David Botton [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox