The caller should allocate stack frames for argument area?

Pan ruochen panruochen@gmail.com
Thu Oct 23 04:08:00 GMT 2008


Page 3-15 says:
(SYSTEM V APPLICATION BINARY INTERFACE, MIPS RISC Processor
Supplement
3rd Edition)
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
function call argument area.  In a non-leaf function the maximum number
of bytes of arguments used to call other functions from the non-leaf func-
tion must be allocated.  However, at least four words (16 bytes) must al-
ways be reserved, even if the maximum number of arguments to any
called function is fewer than four words.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Do these words mean the caller is responsible for allocating function call
argument area on the run-time stack before calling the callee
function? And within
the callee function, the argument area is assumed ready and can be
used directly?

-------------
Best Regards,
PRC
Oct 23, 2008



More information about the Gcc-help mailing list