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 X-Google-Thread: 103376,380eb3e330e4b3e1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-07 01:33:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!gate.dornier.dasa.DE!not-for-mail From: Joachim =?ISO-8859-1?Q?Schr=F6er?= Newsgroups: comp.lang.ada Subject: Re: Executable size with GNAT for Windows and Linux Date: Tue, 07 May 2002 10:35:30 +0200 Message-ID: <3CD791D2.7060903@dornier.eads.net> References: NNTP-Posting-Host: gate.dornier.dasa.de (53.122.46.165) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1020760384 16392675 53.122.46.165 (16 [76083]) User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us Xref: archiver1.google.com comp.lang.ada:23618 Date: 2002-05-07T10:35:30+02:00 List-Id: Duncan Sands wrote: > On Monday 06 May 2002 12:06 pm, Preben Randhol wrote: > >>On 05 May 2002 21:58:42 +0200, Michael Bode wrote: >> >>>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 >>> >>did you compile with -g ? That would include debugging information. >>Compile without -g. >> > > The linker option -s strips out debugging info and some other symbols. > > Duncan. > That switch is not documented in the GNAT User's Guide I have (GNAT Version 3.14p, Date: 2001/05/10 16:08:26). When I use it one of my Exes shrinks from 15 Mb to 3.5 Mb. But the switch eliminates the binder switch -E which generates a readable stacktrace when using Gnat.Traceback_Symbolic.Symbolic_Traceback. When using -bargs -E -largs -s the generated stacktrace only contains addresses, no filenames and linenumbers. J. Schr�er