0

Hi I am student and learning mips assembly language, I am curios that is there is any compiler which convert c++ code into mips assembly language, the IDE which i use for coding for mips is Mars. Is there anyway that I write code for c++ and it will automatically convert that code in to mips as i write in mars. thanks

Salman Khan
  • 17
  • 1
  • 1
  • 3

1 Answers1

2

At least, gcc supports MIPS.

A convenient way to try it with small programs could be Godbolt's Compiler Explorer

See this: https://godbolt.org/z/UGzp4r

Alex Guteniev
  • 12,039
  • 2
  • 34
  • 79
  • Other handy reading: [How can I compile to assembly with gcc](https://stackoverflow.com/questions/8021874/how-can-i-compile-to-assembly-with-gcc) – user4581301 May 22 '20 at 03:47