Hello fellas !
I've to convert this code of recursion to Code MIPS assembly language, and I'm finding it hard at all to interact with recursion in terms of MIPS language;
may please I get help how to convert this code to MIPS with illustration of steps while converting it? specifically the step of converting recursion to MIPS language isn't understandable for me at all, so it would be much appreciated if you explain to me.
here's the code
thanks
I've to convert this code of recursion to Code MIPS assembly language, and I'm finding it hard at all to interact with recursion in terms of MIPS language;
may please I get help how to convert this code to MIPS with illustration of steps while converting it? specifically the step of converting recursion to MIPS language isn't understandable for me at all, so it would be much appreciated if you explain to me.
here's the code
Code:
int f(int n)
{
if (n < 5)
return n;
return 1 + f(f(n – 1));
}
thanks