[Vm-dev] [CRAZY IDEA] "Breakpoints" in the VM from SLANG

Mariano Martinez Peck marianopeck at gmail.com
Mon Apr 18 00:07:38 UTC 2011


On Sun, Apr 17, 2011 at 4:30 PM, David T. Lewis <lewis at mail.msen.com> wrote:

>
> On Sun, Apr 17, 2011 at 03:37:35PM +0200, Mariano Martinez Peck wrote:
> >
> > On Sun, Apr 17, 2011 at 3:22 PM, David T. Lewis <lewis at mail.msen.com>
> wrote:
> >
> > >
> > > On Sun, Apr 17, 2011 at 12:29:21AM +0200, Mariano Martinez Peck wrote:
> > > >
> > > > On Wed, Apr 13, 2011 at 2:48 AM, David T. Lewis <lewis at mail.msen.com
> >
> > > wrote:
> > > > >
> > > > > Try this:
> > > > >
> > > > >  Transcript
> > > > >    open;
> > > > >    clear;
> > > > >    show: (Interpreter asCString: #lookupInMethodCacheSel:class:)
> > > > >
> > > >
> > > > Thanks Dave. I tried but I only got this in the Transcript:
> > > >
> > > > /* Simulator subclasses with method overrides should not be
> translated.
> > > */
> > > > /* ObjectMemory class>>initializeConstants */
> > > >
> > >
> > > Sorry I was not clear, but SlangBrowser does not yet work in the oscog
> > > branch.
> > >
> >
> > Now, I was trying in a Interpreter VM, not Cog.
>
> Sorry, I misread your message. The error message from SlangBrowser is
> misleading. The #initializeConstants method is not translated to C because
> only instance side methods are translated.
>
>
Maybe I was not clear. Want I meant is that I *ONLY* see that in the
Transcript. NOthing else. I didn't see the C code of
#lookupInMethodCacheSel:class:
>
>

> The class side initializers set the values of various class variables
> that will appear as C macros in the generated source. When running the
> interpreter simulator, the class variables are just class variables.
> In the C code, they are #define macros that are used throughout the
> generated C code.
>
>
Interesting :)


> Dave
>
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20110418/bc894b56/attachment.htm


More information about the Vm-dev mailing list