2010/7/26 James Ladd <[email protected]>

>  Hi All,
>
> I'm wondering if you can help me just a little with some information.
>
> With Pharo I can dump the human readable form of Smalltalk bytecodes, like
> this:
>
> 21 <41> pushLit: ContextPart
> 22 <D0> send: primitiveFailToken
> 23 <7C> returnTop
>
> Can someone please point me to a document that outlines what each bytecode
> means?
> ie: <41> <D0> <7C>
>

For an up-to-date reference look at
InstructionStream>>interpretNextInstructionFor: &
 InstructionStream>>interpretExtension:in:for: and the implementations of
the selectors it sends in MethodContext and ContextPart.

For a cogent but somewhat out-of-date account read the 4th part of
Smalltalk-80: The Language and its Implementation on the wayback machine.
 Dwight Hughes digitised the last section of the blue book and put it up on
his site, but its long gone and you'll have to find it on the wayback
machine (if that still exists; I juts visited and got a 404).

HTH
Eliot



> I can essentially see from the dump, but a proper reference would really
> help.
>
> Rgs, James.
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to