From mackinla@cs.curtin.edu.au Fri Jun 25 04:33:08 1993
Return-Path: <mackinla@cs.curtin.edu.au>
Received: from gossip.pyramid.com by dutecai.et.tudelft.nl (4.1/1.34JP)
          id AA12621; Fri, 25 Jun 93 04:32:56 +0200
Received: from sword.eng.pyramid.com 
	by gossip.pyramid.com (5.61/OSx5.1a Pyramid-Internet-Gateway)
	id AA27987; Thu, 24 Jun 93 19:32:50 -0700
Received: from goss.pyramid.com
	by sword.eng.pyramid.com (5.61/Pyramid_Internal_Configuration)
	id AA24959; Thu, 24 Jun 93 19:32:45 -0700
Received: from marsh.cs.curtin.edu.au 
	by gossip.pyramid.com (5.61/OSx5.1a Pyramid-Internet-Gateway)
	id AA27873; Thu, 24 Jun 93 19:32:34 -0700
Received: from vincent.cs.curtin.edu.au by marsh.cs.curtin.edu.au with SMTP id AA20096
  (5.67a/IDA-1.4.4 for <riscy@pyramid.com>); Fri, 25 Jun 1993 10:30:57 +0800
Received: by vincent.cs.curtin.edu.au id AA24202
  (5.65c/IDA-1.4.4 for riscy@pyramid.com); Fri, 25 Jun 1993 10:30:49 +0800
From: Patrick Mackinlay <mackinla@cs.curtin.edu.au>
Message-Id: <199306250230.AA24202@vincent.cs.curtin.edu.au>
Subject: SPIM...
To: riscy@pyramid.com (R3000 PC Mailing List)
Date: Fri, 25 Jun 1993 10:30:48 +0800 (WST)
X-Mailer: ELM [version 2.4 PL20]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1351      
Status: RO
X-Status: 


I just thought I'd let everyone know about a software tool that could
come in extremely handy during initial development. The program is
called spim (or xspim) and is a MIPS R3k CPU simulator. The program
compiles under Linux with a bit of fiddling, and seems to perform
pretty well.

There are a couple of different versions of the program in the source
distribution:

	spim: assembly-level simulator (text mode)
	xspim: assembly-level simulator (runs under X)
	cl-spim: cycle-level simulator (text mode)
	cl-xspim: cycle-level simulator (runs under X)

I haven't looked at either of the cycle-level simulators yet, but I'd
have to assume they worked ok. There are a few BSDisms in the code that
can be fixed by modifying some #include <whatever.h> to the appropriate
#include <bsd/whatever.h> and by linking with -lbsd.

I don't actually remember where the source is archived, but I think
archie can find it ok. If there's a need for it, I guess I can put
my binaries up somewhere, but I hope we're all capable of "compiling
our own" <grin>. I probably will put the patches I did up somewhere
when I get around to it.

Anyhow, I think it could be quite a useful tool...

Pat -- "There's only one thing left to do Mama, I got to ding a ding dang
	my dang a long ling long" (Jesus Built My Hotrod -- Ministry)
GCS d* -p+ c++ l++ m--- s+/- !g w- t- r

 
From calica@cae.wisc.edu Fri Jun 25 16:42:21 1993
Return-Path: <calica@cae.wisc.edu>
Received: from gossip.pyramid.com by dutecai.et.tudelft.nl (4.1/1.34JP)
          id AA15196; Fri, 25 Jun 93 16:42:15 +0200
Received: from sword.eng.pyramid.com 
	by gossip.pyramid.com (5.61/OSx5.1a Pyramid-Internet-Gateway)
	id AA09401; Fri, 25 Jun 93 07:42:01 -0700
Received: from goss.pyramid.com
	by sword.eng.pyramid.com (5.61/Pyramid_Internal_Configuration)
	id AA15818; Fri, 25 Jun 93 07:41:46 -0700
Received: from serv0.cae.wisc.edu 
	by gossip.pyramid.com (5.61/OSx5.1a Pyramid-Internet-Gateway)
	id AA09393; Fri, 25 Jun 93 07:41:45 -0700
Received: from hprisc-26.cae.wisc.edu by serv0.cae.wisc.edu (4.1/25)
	id AA22297; Fri, 25 Jun 93 09:40:22 CDT
Received: by hprisc-26.cae.wisc.edu (16.8/client-1.3)
	id AA05495; Fri, 25 Jun 93 09:37:31 -0500
From: Carlo J. Calica <calica@cae.wisc.edu>
Message-Id: <9306251437.AA05495@hprisc-26.cae.wisc.edu>
Subject: SPIM...
To: riscy@pyramid.com
Date: Fri, 25 Jun 93 9:37:31 CDT
Mailer: Elm [revision: 66.36.1.2]
Status: RO
X-Status: 

> 
> I just thought I'd let everyone know about a software tool that could
> come in extremely handy during initial development. The program is
> called spim (or xspim) and is a MIPS R3k CPU simulator. The program
> compiles under Linux with a bit of fiddling, and seems to perform
> pretty well.
> 
> There are a couple of different versions of the program in the source
> distribution:
> 
> 	spim: assembly-level simulator (text mode)
> 	xspim: assembly-level simulator (runs under X)
> 
> I haven't looked at either of the cycle-level simulators yet, but I'd
> have to assume they worked ok. There are a few BSDisms in the code that
> can be fixed by modifying some #include <whatever.h> to the appropriate
> #include <bsd/whatever.h> and by linking with -lbsd.
> 
> Anyhow, I think it could be quite a useful tool...
> 
SPIM is pretty useful.  I used it in an intro to assembly class here at the
UW.  The binaries ARE available on sunsite under emulators.  The xspim has
a nice interface.  It allows you to step through code.  The emulator reads
in the source at text levels and also takes the a.out files of a compiler.

--
 /------------------------------+--------------------------------------\
| Carlo J. Calica               | Linux:  Choice of the GNU Generation  |
|     calica@cae.wisc.edu       | Dittos from the People's              | 
 \ University of Wisconsin      | Republic of Madison                  / 

 
From mackinla@cs.curtin.edu.au  Ukn Jun 24 22:40:28 1993
Received: from gossip.pyramid.com by SunSITE.unc.edu (4.1/tas-gen/1-30-93)
	id AA21262; Thu, 24 Jun 93 22:40:23 EDT
Received: from sword.eng.pyramid.com 
	by gossip.pyramid.com (5.61/OSx5.1a Pyramid-Internet-Gateway)
	id AA27983; Thu, 24 Jun 93 19:32:48 -0700
Received: from goss.pyramid.com
	by sword.eng.pyramid.com (5.61/Pyramid_Internal_Configuration)
	id AA24959; Thu, 24 Jun 93 19:32:45 -0700
Received: from marsh.cs.curtin.edu.au 
	by gossip.pyramid.com (5.61/OSx5.1a Pyramid-Internet-Gateway)
	id AA27873; Thu, 24 Jun 93 19:32:34 -0700
Received: from vincent.cs.curtin.edu.au by marsh.cs.curtin.edu.au with SMTP id AA20096
  (5.67a/IDA-1.4.4 for <riscy@pyramid.com>); Fri, 25 Jun 1993 10:30:57 +0800
Received: by vincent.cs.curtin.edu.au id AA24202
  (5.65c/IDA-1.4.4 for riscy@pyramid.com); Fri, 25 Jun 1993 10:30:49 +0800
From: Patrick Mackinlay <mackinla@cs.curtin.edu.au>
Message-Id: <199306250230.AA24202@vincent.cs.curtin.edu.au>
Subject: SPIM...
To: riscy@pyramid.com (R3000 PC Mailing List)
Date: Fri, 25 Jun 1993 10:30:48 +0800 (WST)
X-Mailer: ELM [version 2.4 PL20]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1351      
Status: RO
X-Status: 


I just thought I'd let everyone know about a software tool that could
come in extremely handy during initial development. The program is
called spim (or xspim) and is a MIPS R3k CPU simulator. The program
compiles under Linux with a bit of fiddling, and seems to perform
pretty well.

There are a couple of different versions of the program in the source
distribution:

	spim: assembly-level simulator (text mode)
	xspim: assembly-level simulator (runs under X)
	cl-spim: cycle-level simulator (text mode)
	cl-xspim: cycle-level simulator (runs under X)

I haven't looked at either of the cycle-level simulators yet, but I'd
have to assume they worked ok. There are a few BSDisms in the code that
can be fixed by modifying some #include <whatever.h> to the appropriate
#include <bsd/whatever.h> and by linking with -lbsd.

I don't actually remember where the source is archived, but I think
archie can find it ok. If there's a need for it, I guess I can put
my binaries up somewhere, but I hope we're all capable of "compiling
our own" <grin>. I probably will put the patches I did up somewhere
when I get around to it.

Anyhow, I think it could be quite a useful tool...

Pat -- "There's only one thing left to do Mama, I got to ding a ding dang
	my dang a long ling long" (Jesus Built My Hotrod -- Ministry)
GCS d* -p+ c++ l++ m--- s+/- !g w- t- r

 
