                                                       KJC (01/05/96)



This directory contains the SMPL "language: as described in the book,
"Simulating Computer Systems, Techniques and Tools" by M. H. MacDougall
(MIT Press, 1987).  Also included are all sample programs from the book.
Changes have been made, and noted in each file, to make compiling
possible with gcc on UNIX machines.  Everything here should work with
Borland and Microsoft compilers on a PC and gcc on UNIX machines.

To build myprog.exe on a PC using a Borland compiler do the following:

  bcc myprog.c smpl.c rand.c bmeans.c

where myprog.c is a simulation model using SMPL.

To build a.out on a UNIX machine using the cc or gcc compilers do the
following (the "-lm" links the math library):

  gcc myprog.c smpl.c rand.c bmeans.c -lm

where myprog.c is a simulation model using SMPL.

Newer compilers (bcc and gcc) will produce large numbers of warning
messages complaining about a lack of function prototypes.  Ignore
these messages, they are due to the old style C programming used in
SMPL.

The following files are needed for a simulation model using SMPL:

  myprog.c  - - - A simulation program that you write

  smpl.c  - - - - SMPL functions

  smpl.h  - - - - Include file for SMPL

  rand.c  - - - - Random number generators

  bmeans.c  - - - Batch means functions (stat.c merged into this file)

---
Ken Christensen
christen@babbage.csee.usf.edu
http://www.csee.usf.edu/~christen
