Everhart, Glenn From: system@SendSpamHere.ORG Sent: Monday, September 21, 1998 4:53 AM To: Info-VAX@Mvb.Saic.Com Subject: Re: unix techie needs advice to learn VMS In article , Jan Vorbrueggen writes: > >That seems more difficult. I don't think $IMGSTA has a switch to specify >mapping into P1 space. Have a look at how LOGINOUT.EXE manages to get DCL $IMGSTA does have flags for loading an image into P1 space. Typically, it is done by first activating the image into P0 space (fixup is not a necessity here) to determine the size of the image in address space and then, the base address in P1 space can be computed. $IMGSTA can then be invoked with the address region in P1 space to load the image there. Take a look at my CTRL-Verify utility which loads an image into P1 space to be invoked as an out-of-band terminal AST to toggle the DCL verify bit. It employs this activate in P1/activate in P1 methodology. However, in the case of DCL, the image is loaded into P1 space via the use of the IAC${V,M}_P1DIRECT flag. >mapped into the right place. (Doesn't SETP0.EXE do something similar? Map the >addresses and do fixups in P0 using $IMGSTA, then allocate P1 memory and copy >everything there?) SETP0.EXE is a P0 only image. It maintains its user stack in P0 space freeing P1 space for modification. -- VAXman- OpenVMS APE certification number: AAA-0001 VAXman@TMESIS.COM