This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
function structure
- From: 王 逸 <cnnjuwy at hotmail dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Sat, 12 Jun 2004 09:22:33 +0800
- Subject: function structure
Hi, all
RTL representation of function-call insns looks like:
(call (mem:fm addr) nbytes)
here the nbytes refers to the number of bytes of arguments being passed to the subroutine.
So, does (cfun->outgoing_args_size == 0) equals to (nbytes == 0) ?
(I mean in "int a();" both cfun->outgoing_args-size and nbytes are 0;
and in "int b(int);" neither of them is 0)
I've tested and it seemed that's right, but I'm not quite sure.
If this is wrong, please tell me how to determine whether a function has arguments, thanks.
WangYi