This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
tree structure and inserting own profiling code
- To: egcs at egcs dot cygnus dot com
- Subject: tree structure and inserting own profiling code
- From: Milan Schulte <milan at uni-oldenburg dot de>
- Date: Thu, 29 Apr 1999 20:26:38 +0200
- Reply-To: milan at uni-oldenburg dot de
Hi,
I want to insert own profiling code into my programs. My current approach
reads the assembler output of the (Sun-) compiler and inserts assembler
instrcutions before and after operations (like +,-,*,<<,...).
(These instructions count bit changes of the operands during execution, which
can be used to compute expected power dissipation of an algorithm.)
Since I had to implement things the compiler already does (much more better),
I want to let the compiler insert my code. So I am searching for a position in
the source code of the (GNU-) compiler, where the whole algorithm (input for
the compiler) is stored, and where I can add my profiling code.
I have inspected the "tree" structure with a debugger, but when I descent that
structure, I cannot find operations (only function headers).
Do you can help me ?
Milan Schulte
milan@uni-oldenburg.de