Use of Frame Pointer MIPS
问题 i need to convert my code from stack pointer to only use frame pointer, how can i do so? i am very new to MIPS. i have this recursion C code and its MIPS code below. i am using stack pointer , how can i change it to use frame pointer? here is my C Code int fact(int n) { if(n!=1) return n*factorial(n-1); } int comb (int n, int k) { return fact (n) / fact (k) / fact (n - k); } here my MIPS code comb: sub $sp, $sp, 16 sw $ra , 0($sp) sw $s0, 4($sp) sw $a0, 8($sp) sw $a1, 12($sp) jal fact move