Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: paramucho@hotmail.com (paramucho)
Subject: Re: Access to RSTS/E IOPAGE Registers
Date: Wed, 23 Jan 2013 14:10:42 GMT	[thread overview]
Message-ID: <5102ed34.658809569@nntp.aioe.org> (raw)
In-Reply-To: alpine.BSF.2.00.1301221044250.19966@KNOP-BEAGLE.kn.op.dlr.de

On Tue, 22 Jan 2013 10:53:29 +0100, Hartmut Brandt <brandt_h@dlr.de>
wrote:


>p>Which means that FIP is an RT-11 image running under RTEM which uses
>p>FCS. And that raises a question: how did they link an RT-11 image,
>p>presumably built by RT-11 LINK rather than RSX TKB, to the FCS
>p>routines? 
>
>Maybe I don't understand the question correctly, but here is what I did: 
>you set up to catch all the EMTs (there is an RSX directive to do that). 
>That actually gives you only EMTs up to 376. 377 will be routed to RSX 
>anyway. Then you translate all the file-related EMTs from their RT 
>semantics to RSX semantics and do the right calls into FCS. Given that 
>there is no 1:1 relation between RT and FCS file operations this is 
>sometimes tricky, but in my case (getting a compiler to run) it was mostly 
>straightforward.
>
>So, in your RSX RT-emulator you set up everything, read the RT-11 program 
>into the right spot in memory (you must link the RSX program in a way that 
>the addresses usually occupied by RT programs are free) and just execute 
>it. As the RT program is calling its system by executing EMTs the emulator 
>will get them, translate them and do the right things (hopefully). This 
>works, of course, only with RT programs that don't try to reach into the 
>operating system directly...

That's right. I wrote an RT-11 "AME" (Application Migration Executive)
for VAX/VMS, similar to the RSX AME, which worked that way. After the
image is loaded it's just a matter of translating system calls, and
that's quite easy to do for *most* programs and *most* calls.

The tricky bit, for RT-11 to RSX or VMS, is not the translation of the
system call interface but rather the file systems. Many RT-11 programs
rely on RT-11's tentative file behaviour where a new file does not
appear in a directory until the file is closed. A full translation of
all the details of the RT-11 file system to RSX or VMS requires much
more code than the O/S interface.

Programs like the RT-11 linker use the RT-11 .SAVESTATUS/.REOPEN
heavily to access files. That can require caching channel information
to fully resolve.

I first wrote software to solve these problems for a transparent
network that allowed RT-11 or RUST uses to treat remote VMS (or RUST)
devices as if they were local. More recently I redid interfaces to
support RUST to Windows file system translation which I use for the
RUST network and Windows emulator.

C programs have a fairly well-defined work flow which translates
fairly easily to most systems (although that's not true for the
original Unix applications where many have there own unique tricks
when creating and working with temporary files).

Ian


  parent reply	other threads:[~2013-01-23 14:10 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-26 13:22 Access to RSTS/E IOPAGE Registers Jerome H. Fine
2012-12-26 15:35 ` Bill Gunshannon
2012-12-27  0:10   ` glen herrmannsfeldt
2012-12-27 21:13     ` Johnny Billquist
2012-12-27 21:25       ` glen herrmannsfeldt
2012-12-27 21:37         ` Johnny Billquist
2012-12-27 13:38   ` Jerome H. Fine
2012-12-27 21:16 ` Johnny Billquist
2012-12-28  6:32   ` paramucho
2012-12-28 15:01     ` Johnny Billquist
2012-12-30  2:04       ` paramucho
2012-12-30  3:25         ` Johnny Billquist
2012-12-30 18:25 ` jgharston
2012-12-30 21:44   ` Johnny Billquist
2012-12-31  0:34   ` Jerome H. Fine
2012-12-31  0:52     ` Johnny Billquist
2012-12-31 16:04     ` paramucho
2012-12-31 16:23       ` Bob Eager
2012-12-31 16:33         ` Johnny Billquist
2013-01-01  3:28         ` paramucho
2012-12-31 16:30       ` Johnny Billquist
2013-01-01  4:55         ` paramucho
2013-01-01 18:37           ` Johnny Billquist
2013-01-13  8:01             ` paramucho
2013-01-13 14:13               ` Johnny Billquist
2013-01-14  6:30                 ` paramucho
2013-01-14 11:50                   ` Johnny Billquist
2013-01-15 14:20                     ` paramucho
2013-01-15 21:10                       ` Johnny Billquist
2013-01-16  3:25                         ` Jerome H. Fine
2013-01-16  4:39                           ` Johnny Billquist
2013-01-16 13:43                         ` paramucho
2013-01-16 18:59                           ` Johnny Billquist
2013-01-17 11:56                             ` paramucho
2013-01-22  9:53                       ` Hartmut Brandt
2013-01-22 13:52                         ` Johnny Billquist
2013-01-23 14:11                           ` paramucho
2013-01-23 19:53                             ` Johnny Billquist
2013-01-25 13:43                               ` paramucho
2013-01-25 23:39                                 ` Johnny Billquist
2013-01-28  7:47                                   ` paramucho
2013-01-28 18:06                                     ` Johnny Billquist
2013-01-30 12:16                                       ` paramucho
2013-01-30 18:50                                         ` Johnny Billquist
2013-02-02 12:51                                           ` paramucho
2013-02-02 16:15                                             ` Johnny Billquist
2013-02-03 16:16                                               ` Jerome H. Fine
2013-02-04 12:03                                               ` paramucho
2013-02-04 16:58                                                 ` Johnny Billquist
2013-02-15 12:34                                                   ` paramucho
2013-02-15 13:08                                                     ` Johnny Billquist
2013-02-15 15:15                                                       ` paramucho
2013-02-15 16:04                                                         ` Johnny Billquist
2013-02-17 13:02                                                           ` paramucho
2013-02-17 13:43                                                             ` Johnny Billquist
2013-02-19 14:09                                                               ` paramucho
2013-02-20 11:18                                                                 ` paramucho
2013-02-21  0:23                                                                   ` Johnny Billquist
2013-02-21  0:22                                                                 ` Johnny Billquist
2013-02-24 14:10                                                                   ` paramucho
2013-02-24 15:00                                                                     ` Johnny Billquist
2013-03-06 15:33                                                                       ` paramucho
2013-03-06 23:51                                                                         ` Johnny Billquist
2013-03-20 10:15                                                                           ` paramucho
2013-03-20 13:01                                                                             ` Johnny Billquist
2013-03-20 21:42                                                                               ` Johnny Billquist
2013-04-14 16:48                                                                                 ` paramucho
2013-04-14 18:28                                                                                   ` Johnny Billquist
2013-04-15 10:30                                                                                     ` Johnny Billquist
2013-03-20 17:33                                                                             ` Jerome H. Fine
2013-03-25 15:55                                                                             ` paramucho
2013-03-06 15:33                                                                       ` paramucho
2013-02-24 14:12                                                                   ` paramucho
2013-01-23 14:10                         ` paramucho [this message]
2013-01-14  9:13                 ` Hartmut Brandt
2013-01-14  8:08 ` John Santos
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