delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/22/05:44:07

Date: Tue, 22 Feb 2000 11:50:49 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Jens Luedicke <jens AT irs-net DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: file-sizes of executables
In-Reply-To: <200002211104.MAA21111@bird.de.uu.net>
Message-ID: <Pine.SUN.3.91.1000222114947.19089N-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 21 Feb 2000, Jens Luedicke wrote:

> I created a simple Test-Source and compiled it
> with each of my 3 C/C++ compilers, the result, was
> really strange (I think that this is strange):

I think it's meaningless, not strange: why does it matter how many
bytes does a trivial 10-line program take?  If you think it tells
something important about the compiler, then you are wrong.  See 
section 8.14 of the DJGPP FAQ list for more info.

Anyway, without the command lines used to produce the programs, it's
hard to say anything useful.

> DJGPP:   102431 Bytes (fastest)

Did you use -s when linking?

> Mingw32:   9465 Bytes

This uses dynamic libraries, so the executable doesn't include the
library code.  The FAQ explains this.

- Raw text -


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