From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,a1eac0d60049a18f X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2003-05-04 16:54:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-server.caltech.edu!not-for-mail From: Jaap Weel Newsgroups: comp.sys.dec Subject: Re: Beep Code on 433au workstation Date: Sun, 04 May 2003 16:54:58 -0700 Organization: California Institute of Technology, Pasadena Message-ID: References: NNTP-Posting-Host: blacker-195.caltech.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: naig.caltech.edu 1052092486 371 131.215.86.195 (4 May 2003 23:54:46 GMT) X-Complaints-To: abuse@caltech.edu NNTP-Posting-Date: Sun, 4 May 2003 23:54:46 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4a) Gecko/20030401 X-Accept-Language: en-us, en In-Reply-To: Xref: archiver1.google.com comp.sys.dec:15932 > I think you can try to run your program on linux using compatibility libs. > It may work, at least Netscape does. > You can find the step-by-step procedure on www.alphalinux.org > I hope it works but never tried... :) I sure hope that will be all that's necessary. The program is a huge system written almost entirely in DEC Alpha assembly. Basically what they had was an operating system (Genera) written in Lisp that was very closely tied to their Symbolics machines and processors. The Symbolics processor had a microde-layer to extend its instruction set so as to optimally accomodate running Lisp. Basically they made a processor that had all the right instructions to do consing, garbage collection and all that. When the company ran short of cash, they wanted to port their system to commodity hardware. However, one of the specific features they'd always been relying on was a tagged memory architecture, in which it was encoded on a low-level (a.o.) what the type of a certain word of data was (think of it as having flag-bits to every byte of memory that say whether you're storing a float or an int there). To do that, they had always used wide words (36 bits originally, and I think the last models went up to 56-bits), so that there would be bits left over in the word for all these tags and all. (I'm grossly oversimplifying this, there is more to it than just flags that tell the type, but it's kinda like that). The two factors that made it possible to port Genera to alpha seem to have been (a) the 64-bit registers, which -- with some redundancy -- could emulate the Symbolics ones, and (b) the fact that, if you loaded all of the emulator into on-chip cache, it would basically behave like microcode and be almost as fast as what you would get with a processor that truly had all these extravagant instructions built in. More info is in http://pt.withington.org/publications/VLM.html At any rate, this may give an idea of why Genera is not Netscape. The alpha is a little like the Symbolics processor in that different OS's on the alpha use different "firmware", which is basically the equivalent of microcode (grossly oversimplifying again, I guess). This makes it very likely to me that, when programming goes on on such a basic, assembly-language level, it may well be very OS-dependent as well as CPU-dependent. To write a similar emulator for a different processor, or even for a different OS, would probably require a very in-depth knowledge of the instruction sets and capabilities of that processor, and in the case of Alpha/Linux, of the difference between the Alpha/Linux firmware and the OSF/1 firmware.