[Vm-dev] StackInterpreterSimulatorLSB pragma--please verify working assumption

Eliot Miranda eliot.miranda at gmail.com
Sat Dec 7 00:48:42 UTC 2013


Hi Tty,


On Fri, Dec 6, 2013 at 4:15 PM, gettimothy <gettimothy at zoho.com> wrote:

>
> Please verify my assumption--I am starting to see the trees for the forest
> and don't want to waste time due to an incorrect assumption.
>
> Per my reading  on pragmas<http://comp.lang.smalltalk.narkive.com/LZRWMe2V/the-history-of-vw-pragmas>please verify that these:
>
> StackInterpreterSimulatorLSB(StackInterpreter)>>mapStackPages
>     <inline: false>
>     <var: #thePage type: #'StackPage *'>
>     <var: #theSP type: #'char *'>
>     <var: #theFP type: #'char *'>
>     <var: #callerFP type: #'char *'>
>     <var: #theIPPtr type: #'char *'>
>     0 to: numStackPages - 1 do:
>
>
> are intended for whatever generates the C source code
>

Yes, the var:type: pragmas decorate the generated C with the relevant type
declarations.  See also the various declareCVarsIn: which type inst vars
etc.  But the <inline: false> pragma tells the Slang C code generator not
to inline mapStackPages into senders as it produces C.  So for example, a
<inline: true> pragma does /not/ cause the generated C function to be
marked as __inline__.



> and that the assertion fail I am getting later in the method is in no way
> related to the updates Eliot has been recently making to
>
>
>
> Revision: 2820
> Author: eliot
> Date: 2013-12-06 14:44:48 -0800 (Fri, 06 Dec 2013)
> Log Message:
> -----------
> CogVM source as per VMMaker.oscog-eem.545.
>
>
>
That's hard to tell.  I broke something serious sometime before
VMMaker.oscog-eem.536/r2820 that caused the classic VMs to crash on
start-up or soon there-after.  It's fixed in r2820, but there may be other
problems there-in.  I can't prove a negate :-).  But yes, hopefuly the
assert failure should be unrelated.  Are you sing the simulator
successfully?


Thanks.
>
> tty.
>
> p.s. I am really enjoying this puzzle!
> For an update, I have finished my overview of the Blue Book and am now
> taking notes in Tim Rowledge's Object Engine pdf.
> Once that is done, I will be studying the StackInterpreter  documentation
> and can hopefully start contributing soon.
>

Good to hear.  Enjoy!

-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20131206/2e946dc6/attachment.htm


More information about the Vm-dev mailing list