Mail Archives: djgpp/2002/02/21/01:08:15
no optimizations (-O3 -O2, -O1, -Os, etc...) or strip it... -s
----- Original Message -----
From: "Fausto Arinos de A. Barbuto" <barbuto AT ax DOT apc DOT org>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
Sent: Thursday, February 21, 2002 12:36 AM
Subject: Hello, World! == 753 KB
Or 752,983 bytes, to be the most accurate. That's
what I get when I compile the code below with
"gpp -o hello.exe hello.cpp" (gcc version 3.0.3).
Isn't that amazing? So tiny a code, so large an
executable! Is there a _good_ reason for that?...
---Fausto
//---------CUT HERE---------
#include <iostream.h>
#include <math.h>
int main (void) {
cout << "\n\n" << "Hello, World!";
return 0;
}
//---------CUT HERE---------
- Raw text -