delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/15/15:26:59

Message-Id: <199711152025.PAA26351@delorie.com>
From: "sl" <SL AT usemail DOT com>
To: "DJGPP mailing list" <djgpp AT delorie DOT com>
Date: Sat, 15 Nov 97 01:02:55
Reply-To: "sl" <SL AT usemail DOT com>
MIME-Version: 1.0
Subject: Compiled programs are HUGE!

Hi,

	I don't understand why the following source-code would be compiled into 200k. Please explain:

"#include <conio.h>
 #include <iostream.h>

main()
{
  char name[20];

 clrscr(); 
 cout << "Beware of the bear!" << endl;
  cout << "What is your name stranger?" << endl;
  cin >> name;
  cout << name << ", we've been awaiting you..." << endl;
 }
"

	So anyway, when I compile this insane (but incredibly short source-code) I get 200k worth of EXE. 
When using PASCAL to do an equvilent thing this would take up 3k, using BC++ v3.0 this would take up 30k. 
But 200k is outragous! What is going on?

Gili

- Raw text -


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