Adding a primitive with VMMaker

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

Adding a primitive with VMMaker

Mathieu SUEN
 
Hi

How should I add a primitive?
I start by adding an entry to the primitiveTable then I implement the  
function in  the Interpreter but when I generate the code no function  
is define
How should I do?

Thanks

        Mth



Reply | Threaded
Open this post in threaded view
|

Re: Adding a primitive with VMMaker

Bert Freudenberg
 

On Jul 24, 2007, at 15:29 , Mathieu Suen wrote:

> Hi
>
> How should I add a primitive?
> I start by adding an entry to the primitiveTable then I implement  
> the function in  the Interpreter but when I generate the code no  
> function is define
> How should I do?

Did you run the initialize method?

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: Adding a primitive with VMMaker

Mathieu SUEN
 
Yes
        Mth



On Jul 24, 2007, at 3:35 PM, Bert Freudenberg wrote:

>
> On Jul 24, 2007, at 15:29 , Mathieu Suen wrote:
>
>> Hi
>>
>> How should I add a primitive?
>> I start by adding an entry to the primitiveTable then I implement  
>> the function in  the Interpreter but when I generate the code no  
>> function is define
>> How should I do?
>
> Did you run the initialize method?
>
> - Bert -
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Adding a primitive with VMMaker

Mathieu SUEN
 
Ok I found why.
This is because I use the #internalPush: method so I replace it by  
#push:.
What is the difference?
        Mth



On Jul 24, 2007, at 5:01 PM, Mathieu Suen wrote:

> Yes
> Mth
>
>
>
> On Jul 24, 2007, at 3:35 PM, Bert Freudenberg wrote:
>
>>
>> On Jul 24, 2007, at 15:29 , Mathieu Suen wrote:
>>
>>> Hi
>>>
>>> How should I add a primitive?
>>> I start by adding an entry to the primitiveTable then I implement  
>>> the function in  the Interpreter but when I generate the code no  
>>> function is define
>>> How should I do?
>>
>> Did you run the initialize method?
>>
>> - Bert -
>>
>>
>