Code snippets

1. Loading VMMaker

Sometimes loading VMMaker inside Squeak and Pharo can become troublesome. Here I detail each step to do it, in case you forget something.

The way to load it with Pharo is easier than ever, because metacello loads all dependencies for you. Use the Metacello configuration, like this:

Gofer new
    squeaksource: 'MetacelloRepository';
    package: 'ConfigurationOfVMMaker';
   load.

ConfigurationOfVMMaker load.

That would be all for pharo, quite easy.

If you are using squeak instead, you have to load FFI manually before that, because VMMaker depends on it. Open Package Universe Browser->System->FFI (3.9.1 seems to be the latest).

There is a minor dependency issue with KlattSynthesizer plugin, that now is only present in squeak. You can proceed when you get a warning while loading VMMaker or you may want to load:

From www.squeaksource.com/Speech get SharedPool-Speech before VMMaker, that solves the Klatt problem.

Then you can load VMMaker from www.squeaksource.com/VMMaker.

That's all.

2. Loading SqueakNOS

All SqueakNOS smalltalk code lies in two monticello packages: Net and SqueakNOS. Load them both from www.squeaksource.com using monticello, first fetch Net then SqueakNOS. This will get into the image all the drivers needed to run a SqueakNOS VM.