comp.lang.ada
 help / color / mirror / Atom feed
From: Gavin Smyth <sgs1@scigen.co.uk>
Subject: Re: GNAT Codesize
Date: 1996/07/08
Date: 1996-07-08T00:00:00+00:00	[thread overview]
Message-ID: <31E11EFE.CDA@scigen.co.uk> (raw)
In-Reply-To: dewar.836371521@schonberg


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




  parent reply	other threads:[~1996-07-08  0:00 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-20  0:00 GNAT Codesize Haug Buerger
1996-06-20  0:00 ` James E. Hopper
1996-06-21  0:00 ` Ralph Paul
1996-06-21  0:00 ` Robert Dewar
1996-06-24  0:00   ` John McCabe
1996-06-24  0:00     ` John Howard
1996-06-25  0:00       ` Robert Dewar
1996-06-25  0:00       ` David J. Fiander
1996-06-26  0:00     ` Robert Dewar
1996-06-28  0:00       ` Fergus Henderson
1996-07-01  0:00         ` Michael Feldman
1996-07-03  0:00           ` John McCabe
1996-07-02  0:00         ` John McCabe
1996-07-03  0:00           ` Robert Dewar
1996-07-06  0:00             ` John McCabe
1996-07-06  0:00               ` Robert Dewar
1996-07-06  0:00               ` Michael Feldman
1996-07-08  0:00             ` Gavin Smyth [this message]
1996-06-28  0:00       ` John McCabe
1996-06-28  0:00         ` Fergus Henderson
1996-06-29  0:00           ` John McCabe
1996-07-01  0:00             ` Robert Dewar
1996-07-05  0:00               ` John McCabe
1996-07-05  0:00             ` JP Thornley
1996-06-30  0:00         ` Robert Dewar
1996-07-02  0:00           ` John McCabe
1996-07-03  0:00             ` Robert Dewar
1996-07-03  0:00   ` Question about the need for requeue as described in Rationale James A. Squire
1996-07-05  0:00     ` Bo I. Sanden
1996-07-05  0:00       ` progers
1996-07-06  0:00     ` Robert A Duff
1996-07-04  0:00   ` Samuel Tardieu
1996-07-04  0:00     ` Robert Dewar
1996-07-08  0:00   ` James A. Squire
1996-07-08  0:00   ` James A. Squire
1996-07-08  0:00     ` Robert A Duff
1996-07-09  0:00     ` Bo I. Sanden
1996-07-08  0:00   ` James A. Squire
1996-07-09  0:00     ` progers
1996-07-10  0:00     ` Robert A Duff
1996-07-10  0:00       ` progers
1996-07-09  0:00   ` Jon S Anthony
1996-06-21  0:00 ` GNAT Codesize Doug Smith
1996-07-08  0:00 ` Question about the need for requeue as described in Rationale James A. Squire
replies disabled

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