www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/05/03:51:02

Date: Mon, 5 Jan 1998 10:46:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Tony O'Bryan" <aho450s AT nic DOT smsu DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Hello world!
In-Reply-To: <34B05477.4DEF@nic.smsu.edu>
Message-ID: <Pine.SUN.3.91.980105104641.14443H-100000@is>
MIME-Version: 1.0

On Sun, 4 Jan 1998, Tony O'Bryan wrote:

> This code:
> 
> #include <stdio.h>
> 
> int main(void)
>   {
>   printf("Hello world\n");
> 
>   return 0;
>   }
> 
> compiled both with gxx and gcc, then stripped with strip.exe ended up
> the exact same size: 36,504 bytes.

That's because gxx compiles exactly like gcc when the source file
doesn't use any of the C++ classes.  All gxx does is just call gcc
after adding some C++ libraries to the command-line arguments.  But
the linker doesn't link in anything that is not used by the source.

- Raw text -


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