[Vm-dev] [CRAZY IDEA] "Breakpoints" in the VM from SLANG
David T. Lewis
lewis at mail.msen.com
Sun Apr 17 14:30:15 UTC 2011
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.
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.
Dave
More information about the Vm-dev
mailing list