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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6ff6ac051491e437 X-Google-Attributes: gid103376,public From: dsmith@clark.net (Doug Smith) Subject: Re: GNAT Codesize Date: 1996/06/21 Message-ID: #1/1 X-Deja-AN: 161408260 distribution: world references: <31c8fdd4.5a455349@zesi.ruhr.de> content-type: TEXT/PLAIN; charset=ISO-8859-1 organization: AdaSmith mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-06-21T00:00:00+00:00 List-Id: In article <31c8fdd4.5a455349@zesi.ruhr.de>, haug@zesi.ruhr.de (Haug Buerger) wrote: > I have a little Ada program to convert mail and news to display > propperly on an PC with OS/2, nothing but some character > conversions. The main programm is 146 lines long, the > corresponding object file is from 63849 to 113000 bytes big > depending on the optimizeations (-O0..-O3). The object contains > about 2kbyte of text information. That's about 400 bytes per > line, best case. > > Assuming that all the runtime check code is in the runtime > libraries, what is gnat doing? It seems to me that gnat produces > very inefficiente code. > > The whole program is never smaller than 400kbyte. Is it possible > to use a dynamic link library for the runtime library? Is there > any chance to reduce the code size? > > Haug I use the Unix "strip" utility which reduces the code size from 20-40%. If there is a similar utility on OS/2, you could try it. Doug.