Mail Archives: djgpp/1996/08/13/16:30:17
Steve Piner <spiner AT comp DOT vuw DOT ac DOT nz> wrote:
: In article <Pine DOT NEB DOT 3 DOT 95 DOT 960812142450 DOT 16040A-100000 AT ananke DOT amu DOT edu DOT pl>,
: Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl> wrote:
: : On 11 Aug 1996 lafitte AT utdallas DOT edu wrote:
: :
: : > The program :
: : >main() {
: : >
: : >}
: : >compiles to something like 30 or 40k! What gives.
: ...[Stuff about startup code snipped]
: : If you're making little apps then better stick to real mode and TC++ or
: : something similar. If you really want to create small 32-bit apps and the
: : executables are too big for you - get djp, it will save about 60% of the
: : space occupied by an unpacked executable.
: Another little trick is to strip your Coff files. Gcc adds some
: rudimentary debug info even when compiling without the '-g' option.
: If you compile to Coff - 'gcc -o foo ...' - rather than exe -
: 'gcc -o foo.exe ...' - then you can strip the resulting binary and use
: stubify to turn it into a much smaller exe.
Or you can strip the COFF binary and recreate a new .exe with coff2exe
(or if you have only the .exe first exe2coff, strip and then
coff2exe). This works even with executables that are acidentally
distributed unstripped (jpeg386 did that at one point, I think).
bye, Alexander
--
Alexander Lehmann, | "On the Internet,
alex AT hal DOT rhein-main DOT de (plain, MIME, NeXT) | nobody knows
lehmann AT mathematik DOT th-darmstadt DOT de (plain) | you're a dog."
<URL:http://www.mathematik.th-darmstadt.de/~lehmann/>
- Raw text -