From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!a26g2000vbo.googlegroups.com!not-for-mail From: John Wallace Newsgroups: alt.sys.pdp11,comp.sys.dec,vmsnet.pdp-11 Subject: Re: Y3K for PDP-11 Operating Systems Date: Mon, 30 May 2011 14:09:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <982e99c70332e762155dff3bb558fd4b@msgid.frell.theremailer.net> NNTP-Posting-Host: 80.229.247.139 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1306789768 29891 127.0.0.1 (30 May 2011 21:09:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 30 May 2011 21:09:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a26g2000vbo.googlegroups.com; posting-host=80.229.247.139; posting-account=LoTgDQkAAADTKXJ587vuIocn0MiURp6p User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17 (.NET CLR 3.5.30729),gzip(gfe) Xref: g2news2.google.com alt.sys.pdp11:2263 comp.sys.dec:3597 vmsnet.pdp-11:684 On May 27, 2:30=A0am, Fritz Wuehler wrote: > Johnny Billquist wrote: > > On 2011-05-26 01.03, Fritz Wuehler wrote: > > > billg...@cs.uofs.edu (Bill Gunshannon) wrote: > > > >> I guess the problem with that would be which Unix? =A0:-) > > >> And even among similar OSes that doesn't always work. =A0BSD has > > >> "Linux Compatability" but I have seen more programs that didn't > > >> work under it than did. > > > > That doesn't make sense. As far as I know it works 100%. > > > Oh, believe me, it does not. I can easily give you a list of Linux > > programs you can not run on a BSD system, with Linux compatibility. > > Not all system calls are emulated perfectly, and sometimes programs hav= e > > additional tricks going on out in the system, which is even harder to > > emulate. > > I only have experience with Linux emulation under NetBSD but in two years= of > using it with several programs I never saw anything break. I try to avoid= it > though and now I am much more careful not to build anything with Linux > dependencies on BSD systems. I really don't like the bloat and RH libs. I > guess bottom line is for maybe a hardcore user you can find stuff that > doesn't work. I don't think a normal desktop user who uses Linux emulatio= n > will run into problems. Maybe I am wrong but at least the solution is eas= y. > > > It's two different things. And one does not imply the other. > > Implementing VMS as a library/program on top of Linux is a whole > > different ballpark than writing a CPU emulator on top of Linux. > > I didn't read in the thread anybody was crazy enough to implement VMS on = top > of Linux. I wouldn't wish that on my worst enemy. Ok, maybe I would. The > emulators I know aren't Linux-specific anyway. > > If you are going to really rewrite VMS or any OS I don't know of any reas= on > except trying to be el-cheapo like an accountant to do it on top of an > existing (broken, since we agree all the modern choices suck) OS. Write i= t > to run on the metal. There are enough guys around who can still write x86 > assembly who should be able to make it happen. I hate x86 but there aren'= t > much choices. I dread having to code on a PC since nothing I like runs on > one. I am very happy with my work machines (z/OS). Maybe ARM or some othe= r > RISC chip will come back now that Intel is moving away from desktop and w= e > can actually have a good processor to code on again. > > > The requirements for the emulator of the CPU is that you need to perfor= m > > the rather well defined, and limited set of operations that the CPU > > perform. > > That's not true. I can think of at least two major architectures where > although the ISA is defined, many things are implementation specific. Spa= rc > and System Z fall into those categories. If you think it's a simple matte= r > of just hard work to write a Z emulator like they did (Hercules390.org) t= hen > look at the IBM manual called z Architecture Principles of Operation. I > think it's about 1600 pages. That's just the description of the ISA and C= PU > environment. Nothing about the OS is included. Even pure x86 emulation to= day > would be extremely difficult, the instruction set is huge. > > > The OS on the other hand have a very rich set of functions and features= . > > Mostly well documented, admittedly, but some of those functions can be > > much harder to implement on a OS that have a different paradigm. > > Right, so do it on the metal. The whole point is making the OS you want. = Why > cripple it from the start by tying it to a system you don't want? > > Interesting what Palm did in their last versions. All Palm was M68K until > the last models, they started to use ARM cores. They built a hardware > emulation layer of M68K on the ARM so 68K or ARM code would run. > > If you want to approach the VMS project in a similar way you could begin = by > writing a VMS emulation layer on x86 and then writing your OS on top of t= he > VMS architecture as if there were no x86 issues. Having the emulation lay= er > separated from the OS will make everything nice and clean. It will also g= ive > you the capability to run the same OS on FPGA if you code your emulation > layer, you won't have dependency on the metal. You will only have an > architectural dependency, and it will be safe and sound back here in 1955 > all over again. Main point I think is to break up the project into creati= ng > emulated VAX machine and new VMS OS. That is what I would do. If you can > live with the old OS and you can obtain copies then all you have to do is > write the hardware emulation and you don't even need to write the OS. > > I don't know VMS but in general this approach sounds good and doable with > any OS rewrite IF the OS you want to rewrite was targeted for a different > architecture. Some OS are more or less hardware centric and what I sugges= t > is for those that are very hardware centric because z/OS for example is v= ery > much like that. As we know, Linux and UNIX are much less so. It all depen= ds > on how the OS and hardware work together and were designed. "Even pure x86 emulation today would be extremely difficult, the instruction set is huge. " If I've understood you right, you've not seen the PC emulator written in JavaScript that's floating around the Internerd of late? It emulates not just the x86 CPU core but also enough PC IO to (in the distributed demo) get a small Linux booted; there's no obvious technical reason why it wouldn't do any other x86-based OS. It was written by a rather smart chap called Fabrice Bellard (he also did ffmpeg and QEMU) and I wouldn't like to do it myself but since it's already available it's no longer extremely difficult, and the source code isn't *that* huge.