* Fortran common blocks in shared libraries on OSF/1
@ 1996-04-29 4:00 Rachel Kay Street
1996-04-30 4:00 ` Steve Lionel
0 siblings, 1 reply; 2+ messages in thread
From: Rachel Kay Street @ 1996-04-29 4:00 UTC (permalink / raw)
I am working on a large library being ported from VMS to OSF/1.
The library includes a mix of code written in C and Fortran 77.
What do I on the ld line for building the library to cope with the
common blocks as I want each user to have 'their own copies' ?
(As the code was most recently on VAX/VMS I do the names of the common
blocks if this helps me.) Do you have an example of such a command line ?
Thanks for your time.
Rachel Street
--
****************************************************************
* R K Street - RAL Database Systems - (01235) 821900 ext 5833 *
* Rutherford Appleton Laboratory, Chilton, DIDCOT, Oxon, UK *
* Email: TCPIP street@wdcc1.bnsc.rl.ac.uk *
* or R.K.Street@rl.ac.uk *
* DECNET wdcc1b::street *
****************************************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fortran common blocks in shared libraries on OSF/1
1996-04-29 4:00 Fortran common blocks in shared libraries on OSF/1 Rachel Kay Street
@ 1996-04-30 4:00 ` Steve Lionel
0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1996-04-30 4:00 UTC (permalink / raw)
In article <4m28t5$gdm@newton.cc.rl.ac.uk>, street@wdcc1.bnsc.rl.ac.uk
(Rachel Kay Street) writes:
|>
|>
|>I am working on a large library being ported from VMS to OSF/1.
|>The library includes a mix of code written in C and Fortran 77.
|>
|>What do I on the ld line for building the library to cope with the
|>common blocks as I want each user to have 'their own copies' ?
|>(As the code was most recently on VAX/VMS I do the names of the common
|>blocks if this helps me.) Do you have an example of such a command line ?
Rachel,
Unless I misunderstand your question, you don't need to do anything - it is
the default on both OpenVMS and Digital UNIX (OSF/1) that each "user" of a
Fortran application has their own copy of the memory used for COMMON blocks.
You have to do something special to make the memory shared.
Were you using some special linker options on OpenVMS to change how COMMONs
worked? If so, please tell me what they were so I can advise you better.
--
Steve Lionel mailto:lionel@quark.zko.dec.com
Fortran Development http://www.digital.com/info/slionel.html
Digital Equipment Corporation
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For information on Digital Fortran 90, see http://www.digital.com/info/hpc/f90/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-04-30 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-29 4:00 Fortran common blocks in shared libraries on OSF/1 Rachel Kay Street
1996-04-30 4:00 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox