Re: Cross-compiler for spim

blume@sp96.csrd.uiuc.edu (William Blume)
Tue, 8 Dec 1992 04:10:02 GMT

          From comp.compilers

Related articles
Cross-compiler for spim donawa@binkley.cs.mcgill.ca (1992-12-07)
Re: Cross-compiler for spim blume@sp96.csrd.uiuc.edu (1992-12-08)
Re: Cross-compiler for spim larus@cs.wisc.edu (1992-12-08)
Re: Cross-compiler for spim blume@sp96.csrd.uiuc.edu (1992-12-08)
| List of all articles for this month |

Newsgroups: comp.compilers
From: blume@sp96.csrd.uiuc.edu (William Blume)
Organization: UIUC Center for Supercomputing Research and Development
Date: Tue, 8 Dec 1992 04:10:02 GMT
References: 92-12-023
Keywords: assembler

For a while, we tried to use spim with gcc for a class project. You can
build the MIPS cross compiler for gcc up to the point of generating
assembly code. The incompatabilities occur in the files mips-tdump.c and
mips-tfile.c, which dumps or updates the object files. However, we had a
lot of trouble getting spim to accept gcc's output. Many of our problems
were because spim uses only a subset of pseudo instructions and directives
accepted by the MIPS assembler. In the end, we decided to scrap spim, get
an account on a MIPS machine, and to use pixie to collect profiling data.


If you're not limited to spim or MIPS assembly code, you may like to try
dlxsim from Hennessy and Pattersen's "Computer Architecture, A Qualitative
approach." It is ftp'able and contains source code for both the simulator
and a compiler. I can't remember where you can ftp it. The ftp address
is given in the book, however.


Bill Blume
Univ. of Illinois
blume@csrd.uiuc.edu
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.