[Vm-dev] literals in compiled method

Mariano Martinez Peck marianopeck at gmail.com
Fri Mar 15 12:18:28 UTC 2013


On Thu, Mar 14, 2013 at 8:35 PM, Helmut Rohregger <
helmut.rohregger at gmail.com> wrote:

>
> Hi all
>
> maybe someone of you can help me.
> i am trying to read in a Squeak4.3.image in Java. My question is about the
> image-format.
> when i read in a compiled method, there is a object header, then a
> compiled method header and then some literals. The last 2 literals are
> always a ByteSymbol (message selector) and an association which contains
> the class.


Not always ;)  For those methods that have primitives/pragmas, the
penuntimal literal is an instance of AdditionalMethodState (which contains
the selector).
See (Object>>#class) literals at: 2



> I know the address of this association is at 0x1631470 in my image.
> But the address stored as literal in the compiled method is 0x4801470.
> This is 0x31D0000 more then expected.
> Anyone an idea, where this comes from?
> Or maybe some help, where to look, to discover this?!?
>
> thanks
>
>


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


More information about the Vm-dev mailing list