home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / vmsnet / internal / 1401 < prev    next >
Encoding:
Internet Message Format  |  1992-10-07  |  2.9 KB

  1. Xref: sparky vmsnet.internals:1401 comp.os.vms:16179
  2. Path: sparky!uunet!ogicse!decwrl!pa.dec.com!e2big.mko.dec.com!quark.enet.dec.com!lionel
  3. From: lionel@quark.enet.dec.com (Steve Lionel)
  4. Newsgroups: vmsnet.internals,comp.os.vms
  5. Subject: Re: VMS shareable images, what's wrong with them?
  6. Keywords: LIB$FIS
  7. Message-ID: <1992Oct7.160141.11374@e2big.mko.dec.com>
  8. Date: 7 Oct 92 16:01:41 GMT
  9. Article-I.D.: e2big.1992Oct7.160141.11374
  10. References: <Bvo7FC.M01@ithaca.com> <3025@mitech.com> <1992Oct6.201520.24059@e2big.mko.dec.com> <1at59bINNcc7@network.ucsd.edu>
  11. Sender: guest@e2big.mko.dec.com (Guest (DECnet))
  12. Reply-To: lionel@quark.enet.dec.com (Steve Lionel)
  13. Organization: Digital Equipment Corporation, Nashua NH
  14. Lines: 44
  15.  
  16.  
  17. In article <1at59bINNcc7@network.ucsd.edu>, gkn@ucsd.edu (Gerard K. Newman) 
  18. writes:
  19. |>In article <1992Oct6.201520.24059@e2big.mko.dec.com> lionel@quark.enet.dec.com (Steve Lionel) writes:
  20. |>
  21. |>>[...]  Dynamic linking has been
  22. |>>available for some years on VAX/VMS through LIB$FIND_IMAGE_SYMBOL.
  23. |>
  24. |>One of my favorite toys.  Thanks, if you had anything to do with it.
  25. |>
  26.  
  27. While it may seem to some readers of this newsgroup that I've had my fingers in
  28. just about everything, this is one I can't claim.  But I agree that this is
  29. a wonderful routine and it is widely used in our own products.
  30.  
  31. There have been some side-discussions about global section ident matching and
  32. why this feature is "bad", with some other comments appearing to recommend
  33. dynamic linking as the only way it should be done.  The VMS method is a
  34. compromise in some ways; it makes you work a bit harder at building proper
  35. transfer vectors and not moving universal data cells around, but it has the
  36. advantage of faster image activation as one is not doing all that name lookup
  37. every time the image is run.   The issue of GSMATCH idents can be helped
  38. somewhat by building in "dummy" transfer entries which, when called, signal a
  39. "not implemented" error.  If you pad a transfer vector with these dummy
  40. entries, and then take them over when adding new entry points, you don't have
  41. to change the GSMATCH ident until you run out of dummy entries.  As long as
  42. the newly linked image doesn't call the new routines, it can run on older
  43. systems which don't have the new entries.  This method is now used in a number
  44. of the VMS RTL shareable images.  (Someone even cleverly figured out how to
  45. code the dummy entries so that they work whether CALLed or JSBed.)
  46.  
  47. Shareable images were an unusual idea in 1977 when they showed up in VMS V1,
  48. albeit in a form that would seem harshly restrictive today.  But the
  49. technology evolved into something that is astonishingly flexible and efficient.
  50. We've also learned how to use them better along the way (the dummy entries
  51. trick, for instance.)
  52.  
  53. --
  54.  
  55. Steve Lionel                    lionel@quark.enet.dec.com
  56. SDT Languages Group
  57. Digital Equipment Corporation
  58. 110 Spit Brook Road
  59. Nashua, NH 03062
  60.