Path: utzoo!attcan!uunet!husc6!purdue!i.cc.purdue.edu!j.cc.purdue.edu!ain
From: ain@j.cc.purdue.edu (Patrick White)
Newsgroups: comp.binaries.amiga
Subject: REZ (binaries)
Keywords: resident, commands, rez, version 0.3, tested
Message-ID: <7202@j.cc.purdue.edu>
Date: 6 Jun 88 13:00:17 GMT
Organization: PUCC Land, USA
Lines: 532
Approved: ain@j.cc.purdue.edu	(Patrick White)

Submitted by:	kim@amdahl.uts.amdahl.com  (Kim DeVaughn)
Summary:	make programs resident in memory.
Poster Boy:	Patrick White	(ain@j.cc.purdue.edu)
Archive Name:	binaries/amiga/volume6/rez03.b.sh.Z
Tested.
 
NOTES:
   This was an arc that I separated.
   It was Submitted by Kim DeVaughn, but written by Jim Goodnow.
   The patch program is a patch to Manx 3.4b and 3.6 C compilers that allows
the C compiler to become resident (dosen't work otherwise).
   Rob ran into a version of Rez that needed to access the workbench disk
everytime it ran a program -- this version does *not* do that.
   rez will rez a name without stripping the path part of it off -- so one
can rez "c:cd" and "cd" -- rez thinks they are different, but "cd" is the
one that gets run in all cases.  So, if you use rez to load the programs,
cd into the directory first -- otherwise you load "c:cd" but run "cd".
 
 
-- Pat White   (co-moderator comp.sources/binaries.amiga)
ARPA/UUCP: j.cc.purdue.edu!ain  BITNET: PATWHITE@PURCCVM  PHONE: (317) 743-8421
U.S.  Mail:  320 Brown St. apt. 406,    West Lafayette, IN 47906
[How do you get to heaven?   Go to Pluto and hang a left.]
 
========================================
 
#	This is a shell archive.
#	Remove everything above and including the cut line.
#	Then run the rest of the file through sh.
#----cut here-----cut here-----cut here-----cut here----#
#!/bin/sh
# shar:	Shell Archiver
#	Run the following text with /bin/sh to create:
#	README
#	rez.uu
#	rezlib.lib.uu
# This archive created: Fri Jun  3 11:15:04 1988
# By:	Patrick White (PUCC Land, USA)
echo shar: extracting README '(2102 characters)'
cat << \SHAR_EOF > README
                       REZ  V0.3
                       ---  ----

**************************************************************************
***************************************************************************
*****                                                                 *****
*****  REZ is Copyright (C) 1988 by Jim Goodnow II and the binary     *****
*****  is freely redistributable except that it may not be included   *****
*****  as part of any commercial software package without my express  *****
*****  written permission.                                            *****
*****                                                                 *****
***************************************************************************
***************************************************************************


This is the BETA release version 0.3 of a new program and library called REZ.
This program allows almost any program to become resident and under the right
conditions, the code can be simultaneously shared among multiple invocations.

I am placing this program in the public domain subject to the above
restriction. Since this is a BETA version still, please don't give it
to Jerry Pournelle or others of his ilk till a released version is out
or there is a lot of confidence in this version.

With that out of the way, to find out how to use it simply rename
REZlib.lib to REZlib.library and copy it into your LIBS: directory
and say:

    REZ -?

For more detailed info, see the REZ.doc file.

Please let me know about any problems you have via email:

    bix:     jgoodnow
    usenet:  manx@well

or via phone at (415)339-2259.

             Thanks.

              Jim Goodnow II

              2/18/88

PS:

Features to be added in the final version:

- support for Overlays. I know how to do it, just have to write the code.
- smaller code (Once I'm sure it works I'll worry about efficiency)
- instead of a program and a library there will just be the program.
- maybe have the resident programs survive a warm boot ????
- support for running REZ from the workbench

SHAR_EOF
if test 2102 -ne "`wc -c README`"
then
echo shar: error transmitting README '(should have been 2102 characters)'
fi
echo shar: extracting rez.uu '(13514 characters)'
cat << \SHAR_EOF > rez.uu

begin 600 REZ
M```#\P`````````#``````````(```B`````UP````$```/I```(@$[Z$7@`@
M;F%M92!I2X`=&AE(&YA;64@:7,@86QR96%D>2!I;B!T:&4@@>*3KH@E%!/*4"#_
M#F842'H'B4ZZ%-A83S\\``%.NAWP5$]\``QM``$`"&X``IA";?ZB(&R##@@H+
M``$`8V8.2&R`'DAZ!W1.NA2D4$\@;(,.""@```!C9PI(>@=A3KH4CEA/3KH+U
M8BM`_^@@;(,.".@``0!C(&R##CMH`&3__#`M__S`_``R/P!.NAOZ5$\K0/_L?
M,"W__.-`/P!.NAOH5$\K0/_X>``@;?_H*U#_]&!6*VW_]/_P(&W_\`@H``$`!
M#V<@(&W_]"\H``HO+?_H3KH+/E!/,@1(P>.!(&W_^#&`&``P!,'\`#(@0-'M;
M_^P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