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) |
Newsgroups: | comp.compilers |
From: | donawa@binkley.cs.mcgill.ca (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
donawa@cs.mcgill.ca
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.