File: README

package info (click to toggle)
spim 6.1-3
  • links: PTS
  • area: non-free
  • in suites: hamm, slink
  • size: 1,944 kB
  • ctags: 2,839
  • sloc: asm: 10,339; ansic: 9,404; yacc: 1,867; makefile: 713; lex: 583; sh: 95
file content (214 lines) | stat: -rw-r--r-- 4,886 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
		     README FILE FOR SPIM & XSPIM
		     ============================

This directory contains SPIM--an assembly language MIPS R2000/R3000
simulator.


SPIM is copyrighted by James R. Larus and distributed under the
following conditions:

    You may make copies of SPIM for your own use and modify those copies.

    All copies of SPIM must retain my name and copyright notice.

    You may not sell SPIM or distributed SPIM in conjunction with a
    commercial product or service without the expressed written consent of
    James Larus.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.




		       BUILDING SPIM FOR UNIX SYSTEMS
		       ==============================

These instructions explain how to compile and install spim and xspim on a
Unix system.  It is not necessary to compile spim for PCs, as the web site
has precompiled versions.

To make SPIM, you must first run the Configure script:

	% Configure

Note: Configure compiles a program with the C compiler (cc).  If you want it
to use another compiler, set the environment variable CC to its name, e.g.:

	% setenv CC gcc


Next, edit the first few non-comment lines of Imakefile (or Makefile.std, if
you use that instead) to set the pathnames for your system:

	TRAP_DIR  -- The full pathname of the directory in which to install
		     the SPIM trap handler.

	BIN_DIR   -- The full pathname of the directory in which spim and
		     xspim should be installed.

	MAN_DIR   -- The full pathname of the directory in which the manual
		     pages for spim and xspim should be installed.

In general, the remaining parameters need not be changed.


Then type:

	% xmkmf
	% make

(Note: on RS6000's running AIX, you should edit the Makefile to use the c89
compiler rather than cc.)


If you want an X-window version of SPIM, also type:

	% make xspim


If you do not have X-windows or the program xmkmf, edit the makefile in
Makefile.std and type:

	% make -f Makefile.std test
	% make -f Makefile.std xspim


To run spim or xspim, the trap handler code must be installed in the
directory specified by the variable TRAP_DIR in the Makefile.  If the file
trap.handler is not installed, spim and xspim fail with a message before
they start running.  You can either install this file by hand or by typing

	% make install

which also installs spim, xspim, and the manual pages in the directories that you set (above).


To test that spim is correctly built, type

	% make test

and examine the output of the test.  (Note: the trap handler must be
installed before running the test.)



			 NEW VERSIONS OF SPIM
			 ===================

I generally release new version of SPIM before each semester (late
August and early January).  The new version are available by anonymous
ftp from:

	ftp.cs.wisc.edu

in the directory:

	pub/spim/spim.tar.Z



The files in this directory are:

BLURB
	A short description of SPIM.

Configure
	A shell script to configure SPIM.

Imakefile
	Input file for the xmkmf program, which produces Makefile for your
	system.

Makefile.std
	The descriptor file for make program.  Only use this file if you
	do not have xmkmf (see Imakefile).

README	This file.

VERSION
	Version number of system.

buttons.c, buttons.h
	X-interface code for command buttons.

data.c, data.h
	Code to handle data directives.

inst.c, inst.h
	Code to build instructions and manipulate symbol table.

mem.c, mem.h
	Code to maintain memory.

mips-syscall.c, mips-syscall.h
	Code to handle system calls and exceptions.

op.h
	Definition of operations.

parser.y, parser.h
	Assembly command parser (YACC).

reg.h
	Register access macros.

run.c, run.h
	Instruction simulator.

scanner.l, scanner.h
	Lexical analyzer (LEX).

spim-syscall.h
	System call numbers.

spim-utils.c, spim-utils.h
	Misc. routines.

spim.c, spim.h
	Top-level interface.

sym-tbl.c, sym-tbl.h
	Symbol table.

windows.c, windows.h
	X-interface code to build windows.

xspim.c, xspim.h
	Top-level X-interface.

trap.handler
	Standard trap handler.

Tests
	Subdirectory contain torture tests to verify that SPIM works.

Documentation/spim.tex
	TeX document that describes SPIM.

Documentation/spim.ps
	Postscript version of TeX document.




		  WHAT ABOUT SPIM ON SYSTEM XYZ?
		  ==============================

SPIM should run without many changes on many Unix systems.  Obviously,
I have not tested SPIM on many system, nor can I port SPIM to systems
that I don't have.  However, I would like to hear about the changes
necessary to run SPIM on your favorite system.

James Larus
larus@cs.wisc.edu
Computer Sciences Department
1210 West Dayton Street
University of Wisconsin
Madison, WI 53706 USA
608-262-9519


$Header: /u/l/a/larus/Software/SPIM/RCS/README,v 1.21 1997/12/30 21:49:27 larus Exp $