in this C to MIPS example MIPS frame pointer ($fp) takes one word (4 bytes ) , but what is the use of the other 4 bytes that gcc decided to allocate in the stack frame of main function, is it global pointer $gp thing ?
Asked
Active
Viewed 1,008 times
1 Answers
1
The size of stack frames must be multiples of 8 in MIPS architecture. It is described at p.D-20 in MIPS RISC ARCHITECTURE by Kane & Heinrich.

Hiroto Kagotani
- 370
- 1
- 2
- 7