3. Translate the following C code to MIPS assembly code (in twoseparate files). int main() { printf(“before subroutine!\nâ€);Subfunc(); printf(“after subroutine!\n!â€); } void Subfunc(){printf(“I am subroutine!\nâ€);}
4. Translate the following C code to MIPS assembly (in twoseparate files). Run the program step by step and observe the orderof instructions being executed and the value of $sp. int main() {int x=2; z=Subfunc(x); printf(“Value of z is: %dâ€, z); } intSubfunc(int x) { return x+1;}