Mail Archives: djgpp/1995/08/01/20:19:13
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:1299
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!dispatch.news.demon.net!demon!tank.news.pipex.net!pipex!oleane!univ-lyon1.fr!news-rocq.inria.fr!irisa.fr!usenet
|
From: | ecorvell AT irisa DOT fr (Erwann Corvellec)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | ** Comparison between DJGPP V2 & WATCOM C V10 **
|
Date: | 1 Aug 1995 12:56:02 GMT
|
Organization: | Irisa, Rennes (FR)
|
Lines: | 67
|
Sender: | ecorvell AT lys DOT irisa DOT fr (Erwann Corvellec)
|
Distribution: | world
|
Nntp-Posting-Host: | lys.irisa.fr
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
KikOo!
I have written this little (but great ;D) piece of C code:
#include <stdio.h>
int main()
{
printf("KikOo!\n");
return 0;
}
I compile it in 3 ways:
gcc -O1 a.c
strip --strip-all a.out
coff2exe a.out
A.EXE SIZE=33280 bytes
gcc -O1 -c a.c -o a.o
ld a.o -o a.out ../lib/gcrt0.o -L../lib -T../lib/djgpp.lnk -lc
strip --strip-all a.out
coff2exe a.out
A.EXE SIZE=37376 bytes
wcc386 -os a.c
wlink file a
A.EXE SIZE=25468 bytes
First, why is there a difference of size between the two gcc outputs ?
Don't flame me if i've done a mistake because I installed for the first time
DJGPP last night on my PC... ;)
Second, I am VERY distappointed by the difference of size between gcc and
wcc386... :(
Why are there fonts in a.exe generated by gcc ????????
Now here's the C++ version:
#include <iostream.h>
int main()
{
cout << "KikOo!" << endl;
return 0;
}
And the resulting outputs:
gcc -O1 a.cpp -lgpp
strip --strip-all a.out
coff2exe a.out
A.EXE SIZE=100352 bytes
wpp386 -os a.cpp
wlink file a
A.EXE SIZE=32810 bytes
100352 bytes for this little piece of code (150Ko with all symbols !) !
I laughed a lot seeing that last night... ;D
I know you're going to tell me that the whole C++ library is included, but
3 times larger than the wpp386 it's far too much !
Well, DJ I think I'll wait until V3 comes out ! *<:oD
Erwann Corvellec.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Student & coder on PC (ASM, C, C++) & fond of LINUX V1.4 ;-D
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Raw text -