www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/05/04:51:43

Date: Tue, 5 May 1998 11:49:39 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Archee/CoNTRACT <01dsolt AT vpg DOT hu>
cc: djgpp AT delorie DOT com, dj AT delorie DOT com
Subject: Re: DJGPP executables are quite big.
In-Reply-To: <Pine.LNX.3.96.980415023719.384C-100000@Vpg07.vpg.hu>
Message-ID: <Pine.SUN.3.91.980505114555.27724Q-100000@is>
MIME-Version: 1.0

On Wed, 15 Apr 1998, Archee/CoNTRACT wrote:

> DJGPP produces quite big executables.
> 
> Other linkers only include the procedures and variables are used.
> If I compille my program with WATCOM C or VISUAL C, it is quite smalled.

Please see the DJGPP FAQ list (v2/faq210b.zip from the same place you get 
DJGPP), section 8.15.  It explains what to do about that.  (In 99% of the 
cases, people just forget to use the -s switch when linking.  Did you?).

> I think it is not a good way to simply convert a.out to exe.

Why?  Converting to .exe only adds a 2KB stub, which is hardly a lot.

> I think we have to make a linker for coff objects.

The problem is that DOS doesn't know how to run COFF executables.  That's 
one of the problems why we need the 2KB stub.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019