Quantcast

Patch VM and try to re-generate src does not work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Patch VM and try to re-generate src does not work

christophe.jalady
Hi,

I follow this page to try to hack the Cog VM:
https://github.com/pharo-project/pharo-vm

The build itself work.

But now, I want to patch the VM code: I just try to add "self log: 'foobarbaz'" in "ObjectMemory>fullGC".
So:
   - I add such instruction from within "pharo-ui generator.image"
   - I do "PharoVMBuilder buildUnix32."
     BUT this step doesnt regenerate C src code including my changes (I grep "foobarbaz" and found nothing !)
     If I take a look at src/vm/cointerp.c, I see the method "fullGC" but without my changes.

Did I miss something?  


Note: Is it the right workflow to hack the VM/interpreter: patching the generator.image + regenerate src + build + launch the build to test ?

Thanks by advance for your help ...
_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Loading...