function structure

王 逸 cnnjuwy@hotmail.com
Wed Jun 9 09:27:00 GMT 2004


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


More information about the Gcc mailing list