delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/03/23/10:17:51

Date: Sat, 23 Mar 1996 18:10:25 +0300 (MSK)
From: "Alexander V. Lukyanov" <lav AT video DOT yars DOT free DOT net>
Message-Id: <199603231510.SAA10231@video.yars.free.net>
To: djgpp-workers AT delorie DOT com
Subject: ld testing

I've tested ld under win95 and in dos7.0, compiled with original stdio
and with modified one.

I could not profile ld under win95 since it gave GPF.

Does LD use fseek? Yes, it does. It calls it 1803 times when linking itself.
1475 times fseek can be optimized by moving inside stdio buffer (when
using transfer buffer 16k).

Here are times of linking ld in win95 with disk cache:

New:Old TransferBuffer
--- --- --------------
  4:6   4k
  4:6   8k
  5:9   16k
  4:5   64k

... in dos7.0 without disk cache:

 19:27  4k
 19:27  8k
 19:35  16k
 19:25  64k

Strange, isn't it? Linking with 16k transfer buffer takes more time than
with 8k or 64k!

The times are in seconds, measured with 1-second precision.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019