Cross-compiler for spim (Chris DONAWA)
Mon, 7 Dec 1992 16:49:59 GMT

          From comp.compilers

Related articles
Cross-compiler for spim (1992-12-07)
Re: Cross-compiler for spim (1992-12-08)
Re: Cross-compiler for spim (1992-12-08)
Re: Cross-compiler for spim (1992-12-08)
| List of all articles for this month |

Newsgroups: comp.compilers
From: (Chris DONAWA)
Organization: SOCS, McGill University, Montreal, Canada
Date: Mon, 7 Dec 1992 16:49:59 GMT
Keywords: tools, sparc, question, assembler

Does anyone know of a SPARC based C cross-compiler that will generate code
acceptable for the MIPS simulator spim? The latest version of gcc states
clearly that it cannot create a MIPS cross-compiler. We've tried
compiling programs on our MIPS box here (and ftping the .s file to our
SPARC machine), but the MIPS C compiler's assembly code is incompatable
with spim's expected input; spim expects that all function parameters are
passed on the stack, whereas the MIPS C compiler does not always do this.

We tried using lcc, but the assembly produced cannot even be parsed by
spim (I think some of the instructions like $fp=24 are pseudo instructions
and are expanded by the MIPS assembler).

We are using Sparc ELC's running SunOS 4.1.1.

Any spim users out there? What compiler are you using? If anyone could
help me out I'd be very grateful.
Christopher M. Donawa

Post a followup to this message

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