Mail Archives: djgpp/1996/06/28/20:01:03
Reply to message 4426606 from NORBERTJ AT PANI on 06/28/96 12:17PM
>When compiling the hello world program, disk seems to be very busy.
>Takes about 6 seconds. Is this about par for course. FAQ 7. suggests
>that there is a minimum time, but it does not say what it is.
>
>Using 486dx50 with 5m in extended and plenty of swap space.
6 seconds is quite good for a hello world compile. Consider that gcc
must load and run the following programs to compile even the simplest
code:
gcc.exe (itself, of course)
cpp.exe (preprocessor)
cc1.exe (compiler)
as.exe (assembler)
ld.exe (linker)
stubify.exe (adds DPMI stub to COFF)
Of those 6, ld usually takes the largest amount of time. You can reduce it
marginally by stubediting ld to use a 64K transfer buffer, but the gain is
barely noticeable.
Besides, hello world is not a realistic case for measuring compilation
speed - no matter what program you compile you will still have the
overhead of loading the compiler's programs. Try DJGPP with a
50000 line program and then see how fast it is. :)
John
- Raw text -