[VM] [ENTERTAINMENT] A one-step VM build for hobby hackers

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

[VM] [ENTERTAINMENT] A one-step VM build for hobby hackers

David T. Lewis
>From time to time, I try to update the instructions for building a unix
interpreter VM. These tend to get out of date, so I decided to try doing
it in the form of a script that can be run from a clean Squeak image to
load, generate, configure, and build a VM.

If you have a Unix/Linux system with development tools, you may want to
try this yourself. Start in a clean directory, then run the attached
VMUnixBuild.st script as follows:

 $ squeak myImage VMUnixBuild.st

You can also evaluate the script piece-by-piece in a workspace to get
a better feel for the process. Note that the steps that are done with
OSProcess/CommandShell can be done in a normal unix terminal window,
but I did it here with OSProcess so that the entire process can be done
in a script.

I don't know if this works on Mac OS X. If someone can give it a try,
please let us know if it works.

Dave




VMUnixBuild.st (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [VM] [ENTERTAINMENT] A one-step VM build for hobby hackers

Chris Cunnington
On 12-10-07 12:00 PM, David T. Lewis wrote:
>From time to time, I try to update the instructions for building a unix
interpreter VM. These tend to get out of date, so I decided to try doing
it in the form of a script that can be run from a clean Squeak image to
load, generate, configure, and build a VM.

If you have a Unix/Linux system with development tools, you may want to
try this yourself. Start in a clean directory, then run the attached
VMUnixBuild.st script as follows:

 $ squeak myImage VMUnixBuild.st

You can also evaluate the script piece-by-piece in a workspace to get
a better feel for the process. Note that the steps that are done with
OSProcess/CommandShell can be done in a normal unix terminal window,
but I did it here with OSProcess so that the entire process can be done
in a script.

I don't know if this works on Mac OS X. If someone can give it a try,
please let us know if it works.

Dave




    
I used Dave's script a few days ago to do this and it was lots of fun. If there's an easier and more reliable way to make a vm, I don't know it. Reading the script is also very useful.

Chris