Mail Archives: djgpp/1998/03/22/08:45:34
Hello,
I have this old 386 DX @16mhz with 1 meg of RAM and 40 megs of hard disk
space free (after using disk compression!). I put DJGPP v2.01 (gcc
v2.8.0) on it just to see how slow/fast it would run. Here are the
results:
Plain C
#include <stdio.h>
int main()
{
printf("this is a Test.\n");
return 0;
}
command line:
gcc test.c -o test.exe
This took about 30 secs to a minute to compile, and produced ~80k file.
C++
#include <iostream.h>
int main()
{
cout << "this is a Test." << endl;
return 0;
}
command line:
gpp test.cc -o test.exe
This took about 2 hrs give or take a half hour! and produced ~300k file.
Now, that is a difference. On my Pentium 120mhz 80megs of RAM with 2
gigs of HD the compile times are less then 10 seconds.
I really didn't expect the C++ to compile so slowly. How did anyone
ever write software on those older computers? :)
Jason
- Raw text -