[RTL] -- How to insert code into functions?

Jim Wilson wilson@specifixinc.com
Thu Apr 1 19:54:00 GMT 2004


Íõ ÒÝ wrote:
> I'd like to patch GCC to insert some RTL code into all compiled functions.

See the -finstrument-functions option, and its implementation.  Grep the
sources for current_function_instrument_entry_exit.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list