This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: The structure of tree type function declaration
- From: Ian Lance Taylor <iant at google dot com>
- To: Le Ton Chanh <letonchanh at yahoo dot com>
- Cc: GCC Help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 05 Mar 2009 10:47:53 -0800
- Subject: Re: The structure of tree type function declaration
- References: <721508.33090.qm@web38105.mail.mud.yahoo.com>
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