[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A Representation for Native Code
From: |
Ludovic Courtès |
Subject: |
Re: A Representation for Native Code |
Date: |
Wed, 05 Jan 2011 22:38:31 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Hi Noah,
Noah Lavine <address@hidden> writes:
> Also, am I correct in assuming that we'd want to keep the old objcode
> around even after we jitted something, just in case something tried to
> introspect on it? I think putting it in a procedure property would
> work.
I think so, because there’s ‘objcode-meta’, used by ‘program-meta’,
which returns a thunk that itself returns procedure meta-data:
--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> (use-modules (system vm program))
scheme@(guile-user)> ((program-meta 1+))
$3 = (() () ((3 7 1 0 #f)) (name . 1+))
--8<---------------cut here---------------end--------------->8---
Thanks,
Ludo’.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: A Representation for Native Code,
Ludovic Courtès <=