Inserting instrument calls before and after a function

Saleel Kudchadker skudchad@asu.edu
Tue Feb 16 17:24:00 GMT 2010


Hi

I am working on modifying gcc so that I can add custom functions
before the start  and after the end of every function call in gcc.
Much liek __cyg_profile_func_enter and exit but  not when the function
call has already been made.

Is there a easy way to do it? I was concentrating on modifying the
gimplify_function_tree in gimplify.c but that isnt working good for
me. Can somebody put a snippet on how I can go about doing it. Any
help would be appreciated. Thank you.


ps: I am seriously liking this challenging domain of working on gcc.
Thanks to all you guys!

-- 
Regards,

Saleel Kudchadker
Graduate Student
School of Computing , Informatics and Decision Systems
Arizona State University



More information about the Gcc-help mailing list