From: "Jerome H. Fine" <jhfinedp3k@dp3knospamcompsys.to>
Subject: Re: QBUS Prototyping
Date: Thu, 29 Apr 2010 15:53:06 -0400 [thread overview]
Message-ID: <4bd9e3cc$0$274$14726298@news.sunsite.dk> (raw)
In-Reply-To: <hrcjns$cmc$1@naig.caltech.edu>
>glen herrmannsfeldt wrote:
>>In alt.sys.pdp11 Jerome H. Fine <jhfinedp3k@dp3knospamcompsys.to> 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.
The available memory is limited only by the physical memory on the system.
Under RT-11 which has direct access to the IOPAGE registers, there is a DLL
called EMEM.DLL which allows the user to directly access the PC memory.
John Wilson wrote the original DLL which uses 4 IOPAGE registers to:
(a) Mov @#CSR, R0 / Mov R0,@#CSR ;Access the PC memory
(b) Mov @#CSR+2,R0 / Mov R0,@#CSR+2 ;Also auto-increment next 2
registers
(c) Mov R0,@#CSR+4 ;Set up low 16 bits of PC memory address offset
(d) Mov R1,@#CSR+6 ;Set up high 16 bits of PC memory address offset
I have enhanced the DLL so that:
INSTALL EMEM.DLL /SIZE:1024MB
can run under Windows XP on a system with 3 GB of memory.
Under Windows 98SE on a Pentium III with 768 MB of physical memory,
it is possible to request up to 600 MB for EMEM.DLL to use. Not much
left for anyone else at that point.
It is also possible to use the MFPD and MTPD instructions which requires an
extra instruction to load or unload the stack, but which allows the user
all of
the 64 KB for the current program and data, but direct access to the PC
memory
via the EMEM.DLL with the use of the 4 IOPAGE registers. The speed of the
access is slower than using normal memory under E11, but mainly because E11
is slower with the use of the IOPAGE. The speed is mostly dependent on the
L1 and L2 cache sizes. With a core 2 duo CPU (Intel 8200) with a 6 MB L2
cache, E11 seems to have little difficulty keeping almost all current
code and data
in L2 cache. If EMEM.DLL is instructed to request 1 GB of memory, the
access time will be much slower than if the data fits into L2 cache, but
still
done at the speed of memory with no overhead needed for mapping as
with a real DEC PDP-11 that is restricted to less than 4 MB.
Most PDP-11 users are insistent that the code be at least able to run on
a real
DEC PDP-11. So the use of the EMEM.DLL would not be acceptable. But
when I reach CPU speeds under E11 of 100 times a PDP-11/93 and disk I/O
speeds of 200 times any fast SCSI or ESDI drive on a real DEC PDP-11, it
is hard to resist running under E11. For example, while it takes me
about 240
seconds to compare 2 RT-11 * 32 MB partitions on the DEC PDP-11/83
that I still run on occasion, under E11 it takes less than ONE SECOND.
Even on a Pentium III which I still use, it takes only 6 seconds. And that
is about the only difference, aside from the noise of the 3 fans I use
to cool
the 3 Hitachi 600 MB ESDI drives (DK515) on the PDP-11/83. And
one other minor difference. There are 6 VT100 terminals on my desk for
the PDP-11/83. With E11, the ALT/Fn key selects up to 12 terminals to
be displayed. And since I can't look at more than one display at a time,
it seems to work quite well with just the one monitor under E11. Sorry, I
often get carried away.
>>While I am not about to implement the code, it would help to
>>know the characteristics of what is being discussed.
>>
>The basic idea is to build a tree structure based on substrings
>previously seen. If you find one again, point to the tree entry,
>otherwise add a new entry to the tree. Well, that isn't quite
>right because the new entry, pointing to the previous substring,
>is also added to the tree. I think that means that for each
>character input you read one tree entry. When you find a
>substring not previously seen, write one tree entry.
>
>For compression, there is not much reason not to use BITS==12.
>The files will be a little larger, but the 16 bit decompression
>program will still be able to decompress them. The 12 bit
>decompression program, though, won't be able to decompress
>files with BITS==16.
>
>
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.
Jerome Fine
next prev parent reply other threads:[~2010-04-29 19:53 UTC|newest]
Thread overview: 146+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 13:52 QBUS Prototyping Bill Gunshannon
2010-04-08 14:38 ` Scott Dorsey
2010-04-08 14:58 ` Al Kossow
2010-04-08 15:44 ` Bill Gunshannon
2010-04-08 20:46 ` John Wallace
2010-04-08 21:01 ` Bill Gunshannon
2010-04-08 21:58 ` Rob Jarratt
2010-04-08 23:00 ` John Wallace
2010-04-09 11:22 ` David Riley
2010-04-09 18:08 ` Johnny Billquist
2010-04-09 18:22 ` Bill Gunshannon
2010-04-10 19:29 ` Johnny Billquist
2010-04-10 21:05 ` Bill Gunshannon
2010-04-11 9:50 ` Johnny Billquist
2010-04-11 14:13 ` Bill Gunshannon
2010-04-09 19:20 ` glen herrmannsfeldt
2010-04-11 22:08 ` Dennis Boone
2010-04-12 11:41 ` dsnyder
2010-04-12 14:46 ` Al Kossow
2010-04-13 11:08 ` dsnyder
2010-04-15 17:27 ` Scott Dorsey
2010-04-15 18:29 ` Al Kossow
2010-04-09 19:14 ` glen herrmannsfeldt
2010-04-09 20:02 ` John Wallace
2010-04-09 20:28 ` David Riley
2010-04-10 1:28 ` glen herrmannsfeldt
2010-04-14 22:28 ` Bob Koehler
2010-04-08 21:59 ` glen herrmannsfeldt
2010-04-08 22:38 ` Bill Gunshannon
2010-04-11 10:16 ` glen herrmannsfeldt
2010-04-11 14:24 ` Bill Gunshannon
2010-04-11 17:10 ` glen herrmannsfeldt
2010-04-12 21:25 ` Johnny Billquist
2010-04-12 22:02 ` John Wallace
2010-04-13 7:34 ` Johnny Billquist
2010-04-19 2:25 ` John Santos
2010-04-19 11:50 ` John Wallace
2010-04-19 10:50 ` VAXman-
2010-04-24 14:55 ` Bill Gunshannon
2010-04-12 22:33 ` glen herrmannsfeldt
2010-04-13 7:53 ` Johnny Billquist
2010-04-13 12:01 ` glen herrmannsfeldt
2010-04-16 23:44 ` Johnny Billquist
2010-04-17 3:15 ` glen herrmannsfeldt
2010-04-17 21:00 ` Johnny Billquist
2010-04-18 0:31 ` glen herrmannsfeldt
2010-04-18 13:23 ` Johnny Billquist
2010-04-18 16:58 ` glen herrmannsfeldt
2010-04-18 23:02 ` Johnny Billquist
2010-04-19 1:39 ` glen herrmannsfeldt
2010-04-19 20:22 ` Johnny Billquist
2010-04-19 21:27 ` glen herrmannsfeldt
2010-04-20 19:36 ` Hans Bachner
2010-04-24 15:36 ` Steven Schweda
2010-04-25 3:55 ` Johnny Billquist
2010-04-25 5:32 ` Steven Schweda
2010-04-25 11:33 ` Johnny Billquist
2010-04-25 12:17 ` glen herrmannsfeldt
2010-04-25 13:31 ` Johnny Billquist
2010-04-25 14:01 ` Steven Schweda
2010-04-25 21:58 ` Johnny Billquist
2010-04-25 13:58 ` Steven Schweda
2010-04-25 21:47 ` Johnny Billquist
2010-04-26 15:40 ` Bob Koehler
2010-04-27 7:37 ` Johnny Billquist
2010-04-27 7:58 ` Bob Eager
2010-04-27 14:56 ` Bob Koehler
2010-04-28 9:06 ` Johnny Billquist
2010-04-28 12:34 ` Bob Eager
2010-04-28 14:51 ` Bob Koehler
2010-04-29 0:18 ` Johnny Billquist
2010-04-29 15:16 ` Bob Koehler
2010-04-27 14:53 ` Bob Koehler
2010-04-28 9:11 ` Johnny Billquist
2010-04-28 14:52 ` Bob Koehler
2010-04-29 0:20 ` Johnny Billquist
2010-04-29 1:15 ` Johnny Billquist
2010-04-29 7:01 ` John Wallace
2010-04-29 11:19 ` Jerome H. Fine
2010-04-29 18:38 ` glen herrmannsfeldt
2010-04-29 19:53 ` Jerome H. Fine [this message]
2010-04-29 20:35 ` glen herrmannsfeldt
2010-04-29 21:43 ` Bob Eager
2010-04-30 0:23 ` Johnny Billquist
2010-04-30 1:39 ` glen herrmannsfeldt
2010-04-30 0:19 ` Johnny Billquist
2010-04-30 15:04 ` Bob Koehler
2010-04-30 0:09 ` Johnny Billquist
2010-04-30 0:51 ` Johnny Billquist
2010-04-30 0:58 ` Johnny Billquist
2010-04-30 11:44 ` Jerome H. Fine
2010-04-30 14:59 ` Bob Koehler
2010-04-30 18:34 ` glen herrmannsfeldt
2010-04-29 15:19 ` Bob Koehler
2010-04-30 0:42 ` Johnny Billquist
2010-04-30 0:04 ` Johnny Billquist
2010-04-29 15:17 ` Bob Koehler
2010-04-27 15:43 ` jjh
2010-04-27 16:04 ` Richard B. Gilbert
2010-04-28 9:20 ` Johnny Billquist
2010-04-28 16:12 ` Richard B. Gilbert
2010-04-27 22:27 ` Bob Koehler
2010-04-28 9:18 ` Johnny Billquist
2011-04-18 13:00 ` Bob Koehler
2011-04-18 15:06 ` Johnny Billquist
2011-04-18 12:56 ` Bob Koehler
2011-04-18 15:07 ` Johnny Billquist
2011-04-18 17:26 ` Michael Moroney
2011-04-18 17:53 ` Bob Koehler
2011-04-19 3:35 ` Johnny Billquist
2011-04-19 15:34 ` Michael Moroney
2011-04-19 16:47 ` Johnny Billquist
2011-04-18 17:49 ` Bob Koehler
2011-04-19 3:36 ` Johnny Billquist
2011-04-18 12:52 ` Bob Koehler
2011-04-18 15:11 ` Johnny Billquist
2011-04-18 17:51 ` Bob Koehler
2011-04-19 10:29 ` FTP is 40 years old Paul Sture
2010-04-09 14:39 ` QBUS Prototyping Bob Koehler
2010-04-09 16:00 ` Bill Gunshannon
2010-04-09 23:16 ` John E. Malmberg
2010-04-15 6:12 ` Antti Louko
2010-04-15 16:24 ` Run.PDP
2010-04-15 16:46 ` Al Kossow
2010-04-15 17:24 ` glen herrmannsfeldt
2010-04-15 17:20 ` glen herrmannsfeldt
2010-04-16 23:54 ` Johnny Billquist
2010-04-16 21:59 ` Bob Koehler
2010-04-16 23:56 ` Johnny Billquist
2010-04-17 9:24 ` jjh
2010-04-17 9:56 ` glen herrmannsfeldt
2010-04-17 21:04 ` Johnny Billquist
2010-04-24 15:54 ` Bill Gunshannon
2010-04-24 15:52 ` Bill Gunshannon
2010-04-25 4:00 ` Johnny Billquist
2010-04-25 6:29 ` glen herrmannsfeldt
2010-04-25 7:42 ` Wilm Boerhout
2010-04-25 19:57 ` Antti Louko
2010-04-25 11:40 ` Johnny Billquist
2010-04-25 21:47 ` John Wallace
2010-04-26 0:32 ` Johnny Billquist
2010-04-15 17:19 ` Scott Dorsey
2010-04-09 1:00 ` Richard
2010-04-09 11:34 ` David Riley
2010-04-09 21:24 ` Richard
2010-04-08 20:18 ` JF Mezei
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