loko
loko

Reputation: 1

mips frame pointer ($fp) global pointer

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 ?

Upvotes: 0

Views: 1063

Answers (1)

Hiroto Kagotani
Hiroto Kagotani

Reputation: 400

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.

Upvotes: 1

Related Questions