Convert C code to MIPS

edited February 2007 in Internet & Media
Hello,

How do convert c code to MIPS?

Comments

  • JBJB Carlsbad, CA
    edited February 2007
    very carefully;)

    You will have to go line by line and implement the C functionality into assembly.
  • edited February 2007
    Radeon_Man wrote: »
    very carefully;)

    You will have to go line by line and implement the C functionality into assembly.

    I have the c code but I cant do the conversion. Should I post the c code??
  • RWBRWB Icrontian
    edited February 2007
    I thought the compilers did a really good job at making C code as close to assembly as possible. I remember seeing that said multiple times by programmers when people ask why certain programs can't just be done in assembly from the start. And besides the fact that it would take forever, it was also said that compilers have gotten damned good at their job now, and there's not much need for it.
  • JBJB Carlsbad, CA
    edited February 2007
    Well, it depends. I was assuming this was related to a homework assignment, and I don't think teachers want to see auto-generated MIPS...

    If you simply want to run the C code on a MIPS box (and build on your x86) you will have to cross compile it for your MIPS architecture.
Sign In or Register to comment.