[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vm branch now uses vm repl by default
From: |
Neil Jerram |
Subject: |
Re: vm branch now uses vm repl by default |
Date: |
Tue, 9 Sep 2008 09:27:32 +0100 |
Hi Andy,
This is looking like fun! But I'm not fully understanding...
2008/9/9 Andy Wingo <address@hidden>:
> scheme@(guile-user)> (lambda () (pk a #:bar))
> $2 = #<program b755ecf8>
[...]
> scheme@(guile-user)> ,x $2
>
> There is a wealth of meta-commands at the repl, commands that start with
> `,'. This command, `,x', is an abbreviation for `,disassemble'. Its
> output is this:
>
> Disassembly of #<program b755ecf8>:
>
> nargs = 0 nrest = 0 nlocs = 0 nexts = 0
>
> The program has no arguments, no rest arguments, no local variables, and
> no external (lexically-bound) variables.
>
> Bytecode:
>
> 0 (late-variable-ref 0)
> 2 (late-variable-ref 1)
> 4 (object-ref 2) ;; #:bar
> 6 (tail-call 2)
>
> Objects:
>
> 0 #<variable b80057f0 value: #<program b8005858>>
> 1 #<variable b7569af0 value: (a . pair)>
> 2 #:bar
Where in the bytecode is `pk', or some kind of reference to it?
Regards,
Neil