shared libraries can be done right
Rich C. Ankney
rca at nss1.com
Tue May 28 23:58:59 AEST 1991
I think it is important to point out that A-series library calls result in the
called function running on the caller's stack; i.e. no context switch is ever
required. The somewhat slower execution time is measured in microseconds and
is due to the need to update the (static) stack frame linkages to reference
the library's environment (i.e. global variables). (The A-series architecture
is completely stack-oriented and this kind of inter-stack reference has been
supported by other means since the early 1970s. As I recall, libraries debuted
in the mid-1980s, and much of the A-series system software was modified to
become libraries instead of using ad hoc mechanisms to do the same thing.)
Still one of my favorite architectures in the "elegance" category, even if
they don't know how to market it...
More information about the Comp.unix.internals
mailing list