From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.199.73 with SMTP id ji9mr4329639pbc.5.1327292087742; Sun, 22 Jan 2012 20:14:47 -0800 (PST) Path: lh20ni213562pbb.0!nntp.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: paramucho@hotmail.com (paramucho) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Mon, 23 Jan 2012 04:14:45 GMT Organization: Aioe.org NNTP Server Message-ID: <4f1dd9b2.20713812@nntp.aioe.org> References: <4f175c07.15409279@nntp.aioe.org> <4f17edcc.11901487@nntp.aioe.org> <4f19229f.41848032@nntp.aioe.org> <4f2121a1.31333128@nntp.aioe.org> <4f1cbaba.24725004@nntp.aioe.org> <4f1c0fc0.47749628@nntp.aioe.org> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: yPe0Vz9rK3epnEf2vEo6yg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 1.5/32.451 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Sun, 22 Jan 2012 17:15:48 +0100, Johnny Billquist wrote: >On 2012-01-22 15:03, paramucho wrote: >> On Sun, 22 Jan 2012 12:59:14 +0100, Johnny Billquist >> wrote: >> >>> By the way, a reflection here. I note that the coding style in RT-11 is >>> rather different than in RSX. They seem much more "hackish" in RT-11. >>> Making use of all kind of shortcuts and tricky solutions. Lots of mixing >>> of data and code everywhere. Interesting, and rather different from what >>> I'm used to. >>> >>> But it also makes it hopeless to ever have split I/D space. Did anything >>> in RT-11 ever used split I/D space? >> >> In the unmapped monitors RT-11 programs and the O/S have had to >> cohabit the same 28kw address space, so there has been enormous space >> pressure on the system. Anything which saves a word of memory goes. >> RT-11 developers were often given the job of just saving a few words >> so that more functionality could be fitted into a fixed space. >> >> Because of these constraints the code looks "hackish", however, these >> hacks are not the result of hasty or sloppy thinking or individual >> programmers doing their own thing. The RT-11 team remained fairly >> constant over the years and knew the code intimately. I visited >> Maynard a couple of times and was given a desk at the Mill and invited >> to join some of their regular meetings in which functionality was >> proposed, discussed and decided. They weren't cowboys. > >Oh! I didn't want to imply that it was sloppish. My usual experience is >that you need to keep your tongue even more straight in your mouth when >your code is tricky. Becoming sloppy at that point is an almost sure way >of getting into very bad bugs and unusable systems. > >But a thing like: > > DEC (PC)+ ;The RT-11 lights routine! >LITECT: .WORD 1 > BNE ..NULJ ;Not too often > ADD #<512.>,LITECT ;Reset count, clear carry > >is both tricky, and totally non-functioning if you have split I/D space. >(Just as one example from the code you posted.) > >Neat and efficient, though. But not something you'd see in RSX, and not >something I would write myself. >Different style, as I said. I mentioned above that a ROM version of RT-11 was released in the 80s. For that version of the monitor the code would have read: .ROM DEC LITECT,VALUE=1 Which would have expanded to the inline data for the non-ROM version, as above, DEC (PC)+ LITECT: .WORD 1 or to a data area reference for the ROM version, roughly: .SAVE .PSECT RTDATA LITECT: .WORD 1 .RESTORE DEC LITECT But somewhere around V5.6 the .ROM macros were removed and the original non-ROM inline code was reinstated. I/D support was added at the same time, I think. So, I guess the I/D separation applies only to user mode applications, not to the kernel. That would make sense because I can't see how existing RT-11 device drivers could be easily modified support I/D space. As I said, I haven't looked at it in detail. Back in the eighties I would have felt compelled to add compatible I/D space support to SHAREplus (as RUST/XM was called then), but RT-11 V5.6, which was the last DEC release, had a very low customer take-up and I don't think there's more than a handful of apps out there which use the feature. So, it's way down my TODO list. Ian