Couple of questions about VMMaker

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Couple of questions about VMMaker

Mathieu SUEN
 
Hi

I would like to know in which case I should use the above message.

#fetchLong32: ofObject:
#fetchPointer: ofObject:
#fetchByte: ofObject:


Last time I used fetchByte to get a pointer and it work.
I think that fetchPointer should be more apropriate.
and fetchLong32 should work too in a 32bit VM?

I notice also some other message like: #fetchArray: ofObject:  
#fetchFloat: ofObject: #fetchInteger: ofObject: but nobody seems to  
use it

I also wonder why they do not depend on the object header. So Header  
of all object have the sae size?

Also can you explain what the object header is composed? Especialy  
for the special one: CompiledMethod or may be MethodDictionary...


Thanks taking time to answer my questions.


        Mth



Reply | Threaded
Open this post in threaded view
|

Re: Couple of questions about VMMaker

timrowledge
 

On 24-Jul-07, at 24-Jul;2:06 PM, Mathieu Suen wrote:

> Hi
>
> I would like to know in which case I should use the above message.
[snip]

Sounds to me like you might find answers to quite a few questions in  
http://www.rowledge.org/tim/squeak/OE-Tour.html - and any that you  
don't find, let me know just in case I decide to finally rewrite/
extend the article.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: EFBI: Emulate Five-volt Battery Intermittently


Reply | Threaded
Open this post in threaded view
|

Re: Couple of questions about VMMaker

Mathieu SUEN
 
Thanks a lot
        Mth



On Jul 24, 2007, at 11:54 PM, tim Rowledge wrote:

>
> On 24-Jul-07, at 24-Jul;2:06 PM, Mathieu Suen wrote:
>
>> Hi
>>
>> I would like to know in which case I should use the above message.
> [snip]
>
> Sounds to me like you might find answers to quite a few questions  
> in http://www.rowledge.org/tim/squeak/OE-Tour.html - and any that  
> you don't find, let me know just in case I decide to finally  
> rewrite/extend the article.
>
> tim
> --
> tim Rowledge; [hidden email]; http://www.rowledge.org/tim
> Strange OpCodes: EFBI: Emulate Five-volt Battery Intermittently
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Couple of questions about VMMaker

Adrian Lienhard
 
certainly also important to know are the relevant chapters in the  
blue book:
http://users.ipa.net/~dwighth/smalltalk/bluebook/bluebook_imp_toc.html

Adrian

On Jul 24, 2007, at 23:58 , Mathieu Suen wrote:

> Thanks a lot
> Mth
>
>
>
> On Jul 24, 2007, at 11:54 PM, tim Rowledge wrote:
>
>>
>> On 24-Jul-07, at 24-Jul;2:06 PM, Mathieu Suen wrote:
>>
>>> Hi
>>>
>>> I would like to know in which case I should use the above message.
>> [snip]
>>
>> Sounds to me like you might find answers to quite a few questions  
>> in http://www.rowledge.org/tim/squeak/OE-Tour.html - and any that  
>> you don't find, let me know just in case I decide to finally  
>> rewrite/extend the article.
>>
>> tim
>> --
>> tim Rowledge; [hidden email]; http://www.rowledge.org/tim
>> Strange OpCodes: EFBI: Emulate Five-volt Battery Intermittently
>>
>>
>