|Bill Allombert on Sun, 6 Apr 2003 22:11:20 +0200|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: Cygwin + DLL|
On Sun, Apr 06, 2003 at 12:53:11PM -0700, Ilya Zakharevich wrote: > > Also, install() works in gp-dyn, and the bench is about as fast as under > > Linux (DLL takes longer to load though). > > Probably the opposite; just the skewed timing. At least on OS/2, DLLs > are demand-loaded (a page is loaded only when needed; this includes > resolution of symbols); thus the load time of the DLL is included into > the timer output. IIRC, on Linux the whole DLL is loaded first before > the timer starts. No, it is not. Linux do demand-loading. From man ld.so: LD_BIND_NOW If present, causes the dynamic linker to resolve all symbols at program startup instead of when they are first referenced. I was not able to see if it affect the benchmark timing. Cheers, Bill.