tags:

views:

296

answers:

2

I'm currently working on a Mips Code Generator for my Pascal Parser (Written in C using Lex / Yacc) . Does anybode know of a Tool out there I can use as a reference in order assure correct Code Generation?

+1  A: 

Here is a mips simulator. I used it in school to check and run my mips projcets. One thing I remember is that this simulator has a few commands(to make it easier on us students) that real mips compilers don't. I am pretty sure it is all documented tho.

J.J.
Thanks for that! But I was looking for something like: I enter a pascal code in the program and it returns the according Mips code.
Chris
There isn't a 1:1 relationship between source and generated assembly, particularly if an optimiser is involved.
ConcernedOfTunbridgeWells
A: 

You can build the GNU Pascal Compiler for a MIPS target, as a cross-compiler.

Martin v. Löwis
It seems that he's actually writing a compiler, so your answer might not be so helpful.
KovBal