Link to home
Create AccountLog in
Avatar of dminh01
dminh01

asked on

How do we convert C to MIPS

hi everyone,
I am trying to convert some C program to MIPS for education purposes. Is there a compiler that does this?

Thanks
Avatar of Infinity08
Infinity08
Flag of Belgium image

Unless you have a MIPS architecture machine, you could get a cross compiler, like :

        http://inst.eecs.berkeley.edu/~cs162/sp07/Nachos/xgcc.shtml

and let it generate the MIPS code for you (starting from C code).
Avatar of dminh01
dminh01

ASKER

hi infinity08,
how do you run this thing. I downloaded it and install cygwin since it is asking for it but still cannot run it

thanks
Are you familiar with the gcc compiler ? Because that's what it basically is :)


>> but still cannot run it

What does that mean ? What did you try, and what are the symptoms ?
Avatar of dminh01

ASKER

not really. I will be appreciate if you can go through a simple sample for me


thanks
ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account