Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!munnari!taso From: taso@munnari.oz (Taso Hatzi) Newsgroups: comp.os.vms Subject: Shareable Images Message-ID: <1812@munnari.oz> Date: Sat, 5-Sep-87 21:56:21 EDT Article-I.D.: munnari.1812 Posted: Sat Sep 5 21:56:21 1987 Date-Received: Sun, 6-Sep-87 21:04:26 EDT Lines: 14 I want to combine a set of routines into a shareable image. The routines contain static (ie. non-stack) variables. Some of the variables are private to a routine while others are global to all of the routines in the shareable image. I want each program which calls routines in the shareable image to get its own copy of the variables. The variables should be initialized (to zero) each time a program which uses the shareable image is activated. What attributes must I give to the psect's containing the variables in order to achieve this. Also, how should I install the shareable image? Or in other words, how can I arrange it so that the global section which contains the psects which contain the variables has the `copy on reference' attribute m