delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/05/13:57:54

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Wed, 5 Nov 2003 13:56:58 -0500
Message-Id: <200311051856.hA5IuwCR005678@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <a8587dd9.0311051037.544221b7@posting.google.com>
(cmad_x AT yahoo DOT com)
Subject: Re: DJGPP doesn't support Dynamic Linking :(
References: <a8587dd9 DOT 0311051037 DOT 544221b7 AT posting DOT google DOT com>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> I read the DJGPP does not support Dynamic Linking...

It does support dynamic linking.  It doesn't support shared libraries.

> Altough I read DJGPP is for does DOS Extenstion (or
> something)... Shouldn't it have Dynamic Linking?

"shouldn't"?  There's no fundamental rule that says it needs to
support dynamic linking.  However, we do have both DXEs and I think an
old port of gnu dld somewhere.

> I see DJGPP compiled executable files being huge
> compared to Borland C++ compiled ones (for example)...
> 
>   Yeah, why is that exactly? Does anyone know? I compiled (and linked)
> a hello world program... Borland C++ 3.1 produced a 20KB exe file...
> DJGPP 2.03 produced a 230KB exe file... Why!?!?

This is a different problem, addressed in the FAQ.  DJGPP includes a
full POSIX emulator, which adds to its size.  If you don't need it,
there are ways of not including it.  You can get comparable executable
sizes if you try hard enough.

- Raw text -


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