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: Gavin Smyth Subject: Re: GNAT Codesize Date: 1996/07/08 Message-ID: <31E11EFE.CDA@scigen.co.uk>#1/1 X-Deja-AN: 167147829 references: <31c8fdd4.5a455349@zesi.ruhr.de> <835637893.1349.0@assen.demon.co.uk> <4r1806$aci@mulga.cs.mu.OZ.AU> <836339491.14712.0@assen.demon.co.uk> content-type: text/plain; charset=us-ascii organization: The Generics Group Ltd mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0b4 (Win16; I) Date: 1996-07-08T00:00:00+00:00 List-Id: There have been a number of people noting that GNAT DOS executables are quite large. Someone has done some work in shrinking DJGPP executables by effectively compressing the files, and building an uncompressor into the startup code. You can find Laszlo Molnar's DJP utility with the rest of the DJGPP stuff (eg, Simtel somewhere under /vendors/djgpp/v2 I think, or at DJGPP's home, http://www.delorie.com/djgpp/). You can run this tool on the executable produced by GNAT or you can do as I did, and automatically invoke it as part of the build process - the final stage of a GNAT build under DOS is to call COFF2EXE.BAT. I replaced the supplied one with one that calls DJP on the last line - see below: My COFF2EXE.BAT @echo off copy %1 %1.cof>nul: strip %1 stubify %1 del %1 rename %1.cof %1 djp %1.exe It does seem to make a worthwhile saving in disc space, at the expense of a little startup time, and some extra build time, and I haven't had any problems with it so far. Gavin