9 From:	CSBVAX::MRGATE!GG.SPY@ISUMVS@SMTP  3-APR-1988 14:00  To:	ARISIA::EVERHART& Subj:	Re: Chaining Images (THE ANSWER)    Q Received: from CUNYVM.CUNY.EDU by KL.SRI.COM with TCP; Mon 28 Mar 88 08:09:13-PST M Received: from ISUMVS.BITNET by CUNYVM.CUNY.EDU ; Mon, 28 Mar 88 11:08:49 EST & Date:      Mon, 28 Mar 88 09:26:36 CST  To:        <INFO-VAX@KL.SRI.COM>E From:      "Dr. FrankenWylbur" <GG.SPY%ISUMVS.BITNET@CUNYVM.CUNY.EDU> + Subject:   Re: Chaining Images (THE ANSWER)   7 > From:         Carl J Lydick <carl@CitHex.Caltech.Edu> 1 > Subject:      RE: Chaining images... THE source : > Comments: To: SUTTON%BRANDEIS.BITNET@CitHex.Caltech.Edu,+ >               info-vax@CitHex.Caltech.Edu  > P >  > I got a message a few minutes ago (I wonder how many days it will be beforeP >  > this message gets to people), saying that it is not possible in a practicalP >  > sense to "chain images".  That is, "CALL" one image from another as  if  itP >  > were  just  a  subroutine.   I  didn't think it was possible either until aP >  > message came in referring everyone to the LIB$FIND_IMAGE_SYMBOL routine (myP >  > apologies  to  the  person  who  posted it, I don't remember your name).  IP >  > wanted to see if it REALLY did  what  the  manual  seemed  to  say  it  didP >  > (sometimes  the routine descriptions which don't include examples are vagueP >  > or I'm simply too dumb to understand without an example).  I looked in  theP >  > Master  Index to see if there were any references to the routine other thanP >  > the description in the RTL  manual.   There  were  none  and  therefore  no( >  > examples (I assume) in the manuals. > P > I'm one of the people who referred you to LIB$FIND_IMAGE_SYMBOL.  Let me pointP > out  again  that  this  works only with SHAREABLE images.  This means that youP > can't chain most images that are linked to be run via a command from  the  DCLP > level.   However,  I've  discovered  that  it is possible to run at least someP > shareable images via a DCL command; for example, TEST1, below, can be run thatP > way, as well as by being called from TEST0).  Here's a complete example of howP > to use LIB$FIND_IMAGE_SYMBOL from a VAX C program, including  both the calling > and the called program.  >         [some C code omitted here]   O   Since I did not see my previous response to this question, here goes again...   L    There is a system service to map in a new image, it is called SYS$IMGSTA,L its use from user programs is UNSUPPORTED (but, would that stop the likes ofN us?).  It is documented in "VMS Internals and Data Structures", lacking a copyF of that book, you can get a good idea of how to use it from the Pascal( definition file SYS$LIBRARY:STARLET.PAS.   John Hascall( Iowa State University Computation Center( GGUUU@ISUMVS.BITNET, GVJPH@ISUVAX.BITNET  