I have the following code I would like to convert into MIPS assembly can someone explain how I would do that.
int A[40], B[40];
for (i=2; i < 40; i++) {
A[i] = A[i] + B[i-2] / A[i-1];
}**
I have the following code I would like to convert into MIPS assembly can someone explain how I would do that.
int A[40], B[40];
for (i=2; i < 40; i++) {
A[i] = A[i] + B[i-2] / A[i-1];
}**
I cannot say has to how you would like to do this but if you are looking for an automatic way to do this you could use a C to MIPS compiler. For example, LLVM has a MIPS backend so you could use clang to compile it to MIPS.