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]

tree structure and inserting own profiling code


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





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