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
Asked
Active
Viewed 1.1k times
0
-
Yes, of course, there is a GCC port for that, and no doubt proprietary ones as well. Off topic. – user207421 May 22 '20 at 03:47
-
Related: [Tweak mips-gcc output to work with MARS](https://stackoverflow.com/q/13052444) – Peter Cordes Dec 12 '22 at 04:53
1 Answers
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