(which you generally do)….Īfter you have built you the file… go to start debug option… debug-> start/stop debug sessionĪ new window will pop up, or click at he disassembly tab shown the the below pic marked in the red at the bottom…. Save your file with “*****.C” (dot c) extension…. Here i am writing few steps to see the asm code for the c code you have wote ( i have used keil complier here)…. and also it is a bit bitter/complex (atlest for me) to code using asm… but i personaly belive asm language is very versatile and a veery good way for efficent use of microcontroller… and one who had wrote the code in C must have a look at the asm code what is generated by the compiler itself so that i will make you habitual towards asm code…. i prefer if you use C since it is common plateform, but when you go for core design were each and every cycle of the microcontroller does matter alot then you have to go for assembly code. Please reread the question and update your answer accordingly if you have an answer.
The OP wanted their 'C++ program to be converted to mips assembly language', but you have answered with some C++ code, which is not what was sought. Hi every one many a times i got this kind of query that how to convert the C code to assembly code, the code given on this site is in C language i need the asm code, i dont know C, can you send me the asm code…. Hi user4749717, welcome to StackOverflow.