[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MIT-Scheme-users] Query about compiled code
From: |
Matt Birkholz |
Subject: |
[MIT-Scheme-users] Query about compiled code |
Date: |
Sun, 5 Mar 2006 20:25:43 -0700 |
> From: "Amey Karkare" <address@hidden>
> 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... ?