This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The structure of tree type function declaration


Le Ton Chanh <letonchanh@yahoo.com> writes:

> I want to know the details of the structure of tree type function
> declaration. Which documentation can help me to understand that? If I
> have a tree type variable, which is function declaration, can I know
> the number of local variables in this function, this function is a
> leaf function or not?

I assume you mean a function definition rather than a function
declaration.

There is no immediate access to information like the number of local
variables or whether a function is a leaf function.  You have to look at
the body of the function for that.  In the middle-end of the compiler
the body will be a list of GIMPLE statements.  GIMPLE is very lightly
documented in the internals manual.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]