Mail Archives: djgpp-workers/1996/06/23/04:02:05
On Sat, 22 Jun 1996, Oberhumer Markus wrote:
> I have noticed that the linking process of bigger programs (e.g. a C++
> program with debug info) is very slow when delayed-write disk cache is
> disabled (as I do because of safety reasons).
If you use SmartDrv and disable delayed-writes with the /X switch, try
using /N/F instead. This enables write-through, but flushes the delayed
writes when a program exits. IMHO this gives you about the same safety
without sacrificing too much of a speed.
Did you try stibediting ld.exe to enlarge its transfer buffer to 64KB?
Some people say they've got a large speedup after they did this.
> After a look at the specs I suspect this is because gcc calls stubify
> after ld created the COFF image. Is this true ?
I doubt it, unless your image is very large indeed. Stubify is usually
very fast compared to ld.exe. But you can see how much time each of the
programs takes by adding -v to the gcc command line and looking at your
watch when gcc prints the programs it invokes.
- Raw text -