0

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 ?

loko
  • 1
  • 2

1 Answers1

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