It's not possible to advise compiled procedures. With some care, it's possible to replace a particular procedure with an interpreted one. That involves evaluating the source code of the procedure in the correct environment.
On May 13, 2022, 5:07 PM -0700, Sam Lee <samlee746@yahoo.com>, wrote:
Is it possible to use "advise-entry", "advise-exit", and "advise" on
a procedure that is defined in MIT Scheme's src/runtime/ directory?
I am specifically looking to advise the "define-header" procedure that
is defined in src/runtime/http-syntax.scm. Is that possible?