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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,380eb3e330e4b3e1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-06 04:41:40 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "David Botton" Newsgroups: comp.lang.ada Subject: Re: Executable size with GNAT for Windows and Linux Date: Mon, 6 May 2002 07:41:04 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:23579 Date: 2002-05-06T07:41:04-04:00 List-Id: 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" 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?