This is the C backend to the subsumption compiler.  The backend is
simply a translator which writes the intermediate code of the
subsumption compiler as a set of variable initializations in a C
source file, more or less without and change.  The C source file can
be compiled and linked to an interpreter (sim.c) which will execute
the intermediate code.

INSTALLATION:
To use the system do the following:

1. Compile the simulator sim.c.
2. Run lisp.
3. Compile and load the files machC and outC.
4. Run the procedure (make-c-header-files)
5. Run the subsumption compiler as usual.
   The subsumption compiler will generate a .c file.
6. Compile the .c file and link it to sim.o and any libraries you may
   need.

HEADER FILES:
All calls to the C compiler should be given the flag
"-I<this-directory>" so that the compiler will know where to find the
.h files for subsumption.  Alternatively, you could install the .h
files in /usr/included.

EXAMPLE:
The program pet-cursor.beh is given as an example.  It turns the
cursor of your terminal into a simple creature and the screen into a
simple world.  The C source for simulating the world is given in
window-world.c the primops which interface the C code to subsumption
are given in window-world.lisp and should function as a good example.
To run pet-cursor, first evaluate the lisp form (behave "pet-cursor"
:subcompile t), and then compile the .c file with "cc -o pet-cursor
-I. pet-cursor.c window-world.c sim.o -ltermcap".  (termcap is the
terminal cursor control library on unix).

Good luck.  Bugs and questions to ian@ai.mit.edu.

Ian Horswill
MIT Mobot Group
