delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/28/09:33:08

Date: Tue, 28 Jan 1997 16:23:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jonathan Kapleau <jkapleau AT openix DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP v. gcc
In-Reply-To: <5cj9it$ho8$1@spasmolytic.openix.com>
Message-ID: <Pine.SUN.3.91.970128162150.11810B-100000@is>
MIME-Version: 1.0

On 27 Jan 1997, Jonathan Kapleau wrote:

> Maybe this is a stupid question, but how come when I compile a simple
> program (i.e. "Hello, World!") using DJGPP on my pc using only the
> <stdio.h> header file it compiles to something like 80k, but when I
> compile it using gcc under Linux the same program compiles to about 4k.

GCC on Linux supports shared libraries, so all of the library functions 
your program calls aren't at all put into the program, they are loaded at 
runtime.  DJGPP doesn't support shared libraries.

- Raw text -


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