Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: lionel@quark.zko.dec.com (Steve Lionel)
Subject: Re: Fortran common blocks in shared libraries on OSF/1
Date: 1996/04/30	[thread overview]
Message-ID: <4m5dpt$8j2@zk2nws.zko.dec.com> (raw)
In-Reply-To: 4m28t5$gdm@newton.cc.rl.ac.uk



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/



      reply	other threads:[~1996-04-30  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
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