-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I'm not afraid of gimplify, but you can check DynInst (http://www.dyninst.org). It's a runtime to modify a binary (in memory or in disk). Regards. En/na Saleel Kudchadker ha escrit: > 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! > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkt61coACgkQwMPeuqUCg9wcJACggsKssgJdTk5EVQ5lf7jLJoJh 3iIAnRC5AsAdyFLgHOxkwgWmcE+bXSaH =+V/g -----END PGP SIGNATURE-----