Date: Mon, 5 Jan 1998 10:46:59 +0200 (IST) From: Eli Zaretskii To: "Tony O'Bryan" cc: djgpp AT delorie DOT com Subject: Re: Hello world! In-Reply-To: <34B05477.4DEF@nic.smsu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 4 Jan 1998, Tony O'Bryan wrote: > This code: > > #include > > 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.