home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
schemos2.zip
/
readme
next >
Wrap
Text File
|
1995-03-13
|
7KB
|
173 lines
MIT Scheme 7.4 (alpha) for OS/2
MIT Scheme is an implementation of the Scheme programming language.
This implementation is compliant with the "Revised^4 Report on the
Programming Language Scheme" and (with one small exception) the "IEEE
Standard for the Programming Language Scheme". It supplies a large
runtime library, a native-code compiler with source-level debugging
tools, and an extensible integrated text editor which looks very much
like GNU Emacs.
MIT Scheme is free software. Source code for the entire
implementation should have been available in the same place you got
this file.
Prerequisites
-------------
The Scheme files use about 20 megabytes of disk space when unZIPped.
You can reduce this by deleting some files (see "Image Files" below).
MIT Scheme requires a fair amount of RAM to run well. We haven't
tried running this on any machine with less than 36 megabytes, so we
don't have any hard data on what the smallest practical amount of RAM
is. However, for running Scheme under OS/2 Warp, 8 megabytes is
probably the least you should consider, and 12 megabytes is probably
comfortable. If you want to use the Scheme compiler or the Edwin text
editor, you should have at least 16 megabytes of RAM.
MIT Scheme has been tested only on OS/2 Warp 3.0, but it should also
run under OS/2 versions 2.1 and 2.11. It was compiled using IBM C
Set++/2 version 2.1 using the OS/2 Toolkit version 3.0.
Installation
------------
After unpacking this ZIP file, you will have the following files:
README This file.
SCHEME.EXE The Scheme executable program
LIB\ A directory containing the data files needed by Scheme.
OBJECTS\ A directory containing REXX scripts to create PM objects.
ICONS\ A directory containing some useful icons.
1. Move SCHEME.EXE to any directory that appears in your PATH.
2. Move the LIB directory anywhere you like. You may rename it to
anything you like. (Here at MIT, we use "\SCHEME\LIB".) After you
have chosen where it will be located, set the
MITSCHEME_LIBRARY_PATH environment variable in CONFIG.SYS to be
that location.
For example, if you decide to store the directory as "C:\SCHDATA",
you would add the following to CONFIG.SYS:
SET MITSCHEME_LIBRARY_PATH=C:\SCHDATA
You can override the setting of this environment variable with the
"-library" command line option to Scheme, for example:
SCHEME -LIBRARY D:\SCHEME\LIB
If you supply a "-library" option, it is not necessary to have the
environment variable defined. For example, instead of editing
CONFIG.SYS, you might create a ".cmd" file to invoke Scheme and
pass it the "-library" option automatically.
3. The REXX programs in "OBJECTS" can be used to create PM objects to
invoke Scheme with various common settings. I'm not a REXX
programmer, so I don't really understand how these things work, but
if you do know REXX, you should be able to modify these programs to
your own tastes.
You don't need to keep this directory after you have run the
programs in it.
By the way, you don't need to start Scheme from the presentation
manager -- you can start it from the shell also.
4. The "ICONS" directory contains some Scheme-ish icons. You can
paste these into existing PM program objects to make them look
different. If you aren't interested in these icons, you can delete
this directory.
5. Consider setting some of other environment variables described
below.
Image Files
-----------
Scheme stores its runtime environment in a binary "image" file, which
is loaded into the Scheme process directly. An image file is a
snapshot of Scheme's memory taken at a particular time (you can create
your own image files using the DISK-SAVE procedure). This
distribution comes with four different image files, each of which
contains different mixes of programs. These image files are stored in
the LIB\ directory.
1. RUNTIME.COM is the basic runtime environment with no other programs
loaded. This is the smallest image file. All other image files
contain are supersets of this file. This is the default image file
that is used when Scheme starts up, unless it is overridden by a
command-line option.
2. COMPILER.COM contains the basic runtime environment and the LIAR
native-code compiler. This is the image file that is loaded when
Scheme is started with the "-compiler" command-line option.
3. EDWIN.COM contains the basic runtime environment and the Edwin text
editor. This is the image file that is loaded when Scheme is
started with the "-edwin" command-line option.
4. ALL.COM contains the basic runtime environment, the LIAR compiler,
and the Edwin editor. This is the largest of the image files.
You can delete any of these files that you aren't going to use (these
image files take up a LOT of disk space!). However, keep in mind that
you need at least one image file to run Scheme at all.
Documentation
-------------
You can get documentation for Scheme from "swiss-ftp.ai.mit.edu" in
the directory "/pub/scheme-7.3/doc/". There are two documents:
* The MIT Scheme User's Guide describes how to run and use Scheme. It
describes all of the environment variables and command line options,
how to run the compiler and editor, etc.
* The MIT Scheme Reference Manual documents the programming language
and the runtime library. This is a large and detailed document for
writing programs.
Environment Variables
---------------------
MITSCHEME_LIBRARY_PATH says where to find Scheme's data files. This
is the only required environment variable.
SET MITSCHEME_LIBRARY_PATH=D:\SCHEME\LIB
MITSCHEME_INF_DIRECTORY tells Scheme where to find debugging
information for the runtime system. The default value for this
environment variable is a subdirectory "src" located in the directory
specified by MITSCHEME_LIBRARY_PATH.
SET MITSCHEME_INF_DIRECTORY=D:\SCHEME\LIB\SRC
The TMP environment variable tells Scheme the name of a directory
where it can store temporary files. If not specified, a number of
different possible directories are tried, in order:
1. \TMP on the current drive
2. C:\
3. the current directory
4. \ on the current drive
SET TMP=D:\TMP
The HOME environment variable tells Scheme where your "home" directory
is located. This is where Scheme looks for init files, and it is also
what the "~/" filename prefix expands to. If not specified, Scheme
uses the root directory of the current drive.
SET HOME=D:\CPH
The SHELL environment variable tells Edwin what shell program to use
in shell buffers and for running shell commands. If not specified,
this defaults to the standard OS/2 shell, "cmd.exe".
SET SHELL=D:\LOCAL\PROG\4OS225\4OS2.EXE
Bug Reporting
-------------
If you discover any bugs, we'd like to hear about them. Please send
bug reports to
bug-cscheme-os2@zurich.ai.mit.edu