From: "David Eagles" <david@pc.com.au>
Subject: Shareable Images under OpenVMS (Alpha)
Date: 1997/07/25 [thread overview]
Message-ID: <5r8710$93@world1.logicworld.com.au> (raw)
I was hoping someone may be able to provide me with some assistance in the
creation of a shared image under OpenVMS on an Alpha. I appologise if this
is not the most approprite group or the question is answered elsewhere, and
also for the length of the message...
The situation is this: I need to create a shareable image (using DECC with
/STANDARD=VAXC enabled) to share data (and possibly functions) between a
number of tasks on an Alpha. No matter what I try though, I don't seem to
be able to see changes made by one task from another... I have written a
simple test in which the shared image contains an array of ints (ie. int
exdata[256] ). Two applications are linked against this - one displays the
contents of the data array every 5 seconds while the other allows values to
be written to it. However, after compiling linking everything, and
installing the shared image, I don't get the expected result.
To further compound the problem, the final applications will need to be
linked against another packages libraries which require the common_block
external model (ie. /extern_model=common_block during compilation).
However, my tests do not work either with or without this switch)...
At present, I'm using the following approach
cc /standard=vaxc /extern_model=common_block app1
cc /standard=vaxc /extern_model=common_block app2
cc /standard=vaxc /extern_model=common_block shared1
link /share=shared1.exe share.opt/opt
link app1, app.opt/opt
link app2, app.opt/opt
where share.opt contains
!
shared1.obj
!
GSMATCH = LEQUAL,01,00
IDENTIFICATION = "CCSGLC V1.0"
!
SYMBOL_VECTOR = ( exdata = DATA )
!
!
and app.opt contains
!
sys$disk:[]shared1/share
!
I can then
define /system shared1sys$disk:[]shared1.exe
install create shared1 /share /write
run a (in one DECterm)
run b (in a second DECterm)
The periodic display of the data always displays all 0's, even though the
setting is working.
Performing a install list shared1 /full gives
SHARED1;1 Open Shar Lnkbl Wrt
Entry access count = 2
Current / Maximum shared = 0 / 2
Global section count = 4
Can any kind soul possibly provide me with some information (or even better,
some sample code and instructions :-) ) which will enable me to overcome
this problem...
Any assistance would be greatly appreciated!
Regards,
David Eagles
david@pc.com.au
reply other threads:[~1997-07-25 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox