This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: tree structure and inserting own profiling code
- To: milan at uni-oldenburg dot de
- Subject: Re: tree structure and inserting own profiling code
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Fri, 30 Apr 1999 01:49:27 -0600
- cc: egcs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <3728A45E.349B8749@uni-oldenburg.de>you write:
> I have inspected the "tree" structure with a debugger, but when I descent
> that structure, I cannot find operations (only function headers).
The tree structure only contains a statement by statement translation of the
source code. After a particular statement is converted into a tree, and
optionally optimized the tree expression is converted into rtl and the tree
expression is thrown away.
While you could try to get access to the tree nodes for each statement as
they are created it probably would not be very easy or clean.
You may be better off working from the RTL intermediate form. In addition
to giving you access to the entire function the RTL form is much better
documented than the tree form.
jeff