[Vm-beginners] Patch VM and try to re-generate src does not work

christophe.jalady at free.fr christophe.jalady at free.fr
Sat Aug 8 23:57:14 UTC 2015


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 ...


More information about the VM-beginners mailing list