This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
The caller should allocate stack frames for argument area?
- From: "Pan ruochen" <panruochen at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 23 Oct 2008 12:07:51 +0800
- Subject: The caller should allocate stack frames for argument area?
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