From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 3717dac89a,32247abf28da27d4 X-Google-Attributes: gid3717dac89a,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!transit4.hitnews.eu!feeder1.cambriumusenet.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!news.ctrl-c.liu.se!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail Newsgroups: alt.sys.pdp11,comp.sys.dec,comp.os.vms Subject: Re: QBUS Prototyping Message-ID: From: Johnny Billquist Date: Fri, 30 Apr 2010 02:19:54 +0200 References: <8265dgFs33U3@mid.individual.net> <4dff54d9-dfc7-4d90-9307-995e5d96e53f@y36g2000yqm.googlegroups.com> <4bd96b18$0$281$14726298@news.sunsite.dk> <4bd9e3cc$0$274$14726298@news.sunsite.dk> Organization: Update Computer Club NNTP-Posting-Host: 178-83-29-134.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: Iltempo.Update.UU.SE 1272586794 3471 178.83.29.134 (30 Apr 2010 00:19:54 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Fri, 30 Apr 2010 00:19:54 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) In-Reply-To: <4bd9e3cc$0$274$14726298@news.sunsite.dk> Xref: g2news2.google.com alt.sys.pdp11:1527 comp.sys.dec:1988 comp.os.vms:30685 Jerome H. Fine wrote: > >glen herrmannsfeldt wrote: > >>> In alt.sys.pdp11 Jerome H. Fine wrote: >> (snip related to Fortran and virtual arrays) >> >>> As for the compression algorithm itself, can anyone provide some >>> information on just how that 128 KB table is accessed? READ ONLY? >>> Random? Sequential? Same on decompression? It would make a big >>> difference if the access was sequential, but somehow it would seem >>> that it must be random access to that 128 KB table and maybe the >>> table even gets altered as the algorithm progresses through the input >>> file? >>> >> For compression, it generates a tree structure based on what >> it has seen so far. Last time I looked into this was compress.c, >> in the days before gzip. If I put compress.c into google, the second >> hit, the one with actual source, comes from apple.com. >> It is copyright University of California 1986, last changed in 1985. >> >> It seems I wasn't quite right on the 128K. The compression >> table needs 2**BITS words, each of which holds a value between >> -1 and 2**BITS-1, such that the usual implementation (with #ifdef) >> uses (int) (16 bits on smaller machines in 1985) for BITS<16, >> and (long int) for BITS==16. One might be able to do that with >> a 65536 entry table of 16 bit integers, and a 65536 bit table >> indicating which entries where -1 to save memory. >> >> There is even an #ifdef pdp11 which sets BITS to 12. >> >> > I have made a suggestion which many may not appreciate for implementation > using a PDP-11 instruction set which runs under the Erstaz-11 emulator, > normally > called E11 for short. Yes. And a program that can't run on a PDP-11, but only on E11 is, in my opinion, of little use to the PDP-11 community. Why don't you just use the PC itself. That will allow your programs to run even faster, since you don't have the E11 emulation layer between you and the CPU? And if I want access to large amounts of storage, I can just as well ues a disk. That will hold even more data than your memory device. And then I can also make the program work on a real PDP-11. Your solution would just create a stupid limitation that wouldn't help anyone. Not to mention the fact that it is only useable on operating systems which allow you to manipulate the MMU yourself, which in practice means RT-11 only. But hey. Don't let me stop you from writing a ZIP-program for RT-11 if you want to. But please don't bother me with it. > It sounds like any one willing to make use of E11 can manage to > implement the > algorithm under RT-11 quite easily. I also wrote some F77 compatible > subroutines > which aid the user to read and write the PC memory. The subroutine > substitutes > in-line code for the CALL to the subroutine after the first use. > Especially > tricky to figure out was the subroutine which does a write to the PC memory > since a normal F77 function CALL receives a value rather than doing a > write. I think that if you want to go down that path, you should instead implement a ZIP-device. Pour the file into the device, and get the expanded results out. After all, you can then run ZIP on the PC itself. And ZIP have already been implemented. So such an exercise would not only be even faster, but it is mostly already done, so all you need to do is the actual file copying. It will also be limited to E11 only, but then again, your solution is just as limited. Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol