Currently trying to understand how to convert some C into mips. Is a "return func" different from "return"? Both C codes are very similar yet im unsure how they will both look in code once completed. Are both of these codes the same? The second code is from another thread and I wanted to know if anyone could explain to me the differences when converted and why they are similar or different.
Here is the C Code:
int f (int a, int b, int c, int d) {
If (a + b > c + d)
return (a + b);
return (c + d);
}
Here is a similar problem (from another thread):
int f(int a, int b, int c, ind d)
{
if (a+b > c+d)
return func(a + b, c + d);
return func(a + b, c + d);
}
Thank you! :)
-Poppic