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.
2009-01-12 14:07:50
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
2009-01-12 14:10:03
There isn't a 1:1 relationship between source and generated assembly, particularly if an optimiser is involved.
ConcernedOfTunbridgeWells
2009-01-12 15:30:35
A:
You can build the GNU Pascal Compiler for a MIPS target, as a cross-compiler.
Martin v. Löwis
2009-01-12 14:30:28
It seems that he's actually writing a compiler, so your answer might not be so helpful.
KovBal
2009-03-24 19:04:31