C를 mips로 어케바꾸는지 전혀몰겟음

진짜 가르쳐줄떄 개좆같이 가르쳐줘서 딴애들하테 물어봐도 다모른다함지금;;


a.

main()

{

leaf_function(1);

}

<!--[if !supportEmptyParas]--> <!--[endif]-->

int leaf_function (int f)

{

int result;

result = f + 1;

if (f > 5)

return result;

leaf_function(result);

}

b.

int my_global = 100;

main()

{

int x = 10;

int y = 20;

int z;

z = my_function(x, my_global);

}

<!--[if !supportEmptyParas]--> <!--[endif]-->

int my_function(int x, int y)

{

return x - y;

}


이걸 mips로 바꾸면 어케댐 진짜 예시라도점 ㅠ