This is the mail archive of the gcc@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]

Re: tree structure and inserting own profiling code



  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


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