> From: "Amey Karkare" <[EMAIL PROTECTED]>
> Date: Mon, 27 Feb 2006 17:39:54 +0530
> 
> Hi,
>  I am trying to understand memory management and garbage collection
>  in mit-scheme.  My aim is to collect the all usage of car-s and
>  cdr-s while interpreting a given scheme program. I am able to do it
>  if I the code is not compiled, by modifiying Prim_car and Prim_cdr
>  routines in C. However, I am unable to track usage of car/cdr in
>  compiled code.

Can you re-define car and cdr for your "given scheme program" --
e.g. load it into an environment in which car is a procedure that
increments your meter before calling the real thing?

Who-all's use of car and cdr do you want to measure?  Surely not the
whole system... ?


_______________________________________________
MIT-Scheme-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/mit-scheme-users

Reply via email to