Fundamental defect of the concept of shared libraries

John F Haugh II jfh at rpp386.cactus.org
Mon May 20 23:56:41 AEST 1991


In article <209 at titccy.cc.titech.ac.jp> mohta at necom830.cc.titech.ac.jp (Masataka Ohta) writes:
>The call overhead is six extra cycles with typical RISCs, whenever an
>inter-object-file (not inter-library) call-return takes place. It is
>not negligible when we are heavyly doing something like strcmp().

The CPU overhead to field an unneeded page fault caused by too many
statically bound executables will dominate your little 6 cycle hit
the first time it happens.  Trust me.  I'd rather have a slightly
slowed down, CPU bound process, than a system thrashing about all
day and night because it doesn't support shared libraries.
-- 
John F. Haugh II        | Distribution to  | UUCP: ...!cs.utexas.edu!rpp386!jfh
Ma Bell: (512) 255-8251 | GEnie PROHIBITED :-) |  Domain: jfh at rpp386.cactus.org
"If liberals interpreted the 2nd Amendment the same way they interpret the
 rest of the Constitution, gun ownership would be mandatory."



More information about the Comp.unix.internals mailing list