Mail Archives: djgpp/2003/07/20/12:05:52
WOW! Who sayz you kan't teech an old dawg gnu triques !!!
* C++ */
#include <iostream>
using namespace std;
int main(void) {
cout << "Hello World!" << endl;
}
.....A 07-20-2003 11:12:30 118 8CB9B5E4 Hw1.cpp
.....A 07-20-2003 11:13:02 253952 3F7FEA21 hw1.exe
gxx -s Hw1.cpp -o hw1.exe
All I needed to learn was this magical gem: using namespace std;
I wonder what other discoveries are to be made ;-)
WHO else wants in (the discussion)... KEEP it going!
WHATS your opinion of:
C++ In Plain English, Brian Overland.... most superb book I've seen!
//RadSurfer//
On Sun, 20 Jul 2003 11:29:30 +0200, "Eli Zaretskii" <eliz AT elta DOT co DOT il>
wrote:
>> From: RadSurfer <RadSurfer AT yahoo DOT com>
>> Newsgroups: comp.os.msdos.djgpp
>> Date: Sun, 20 Jul 2003 02:29:54 -0400
>>
>> Why is the C++ executable 507,145 bytes???
>>
>> yikes!
>>
>> More discussion please....
>> How does one get the EXE size down to something practical?
>
>By reading the FAQ, of course (section 8.14).
>
>> BTW: A nearly similar Borland BCC32 compile of HW.CPP
>> results in
>> .....A 07-20-2003 01:42 100 5357307D HW.CPP
>> .....A 07-20-2003 01:42 4958 95E194DE HW.obj
>> .....A 07-20-2003 01:42 143360 53C13363 HW.exe
>>
>> 1/5th the EXE size of the DJGPP !!
>
>I'm guessing that BCC32 supports a subset of ANSI C++ and that its
>exe file is stripped of debugging info. Again, see the FAQ for more
>about this.
- Raw text -