[squeak-dev] Building CogVM on FreeBSD
David T. Lewis
lewis at mail.msen.com
Sun Dec 5 19:15:42 UTC 2010
On Sun, Dec 05, 2010 at 06:14:54PM +0000, Frank Shearar wrote:
>
> And building completed without error! I haven't attempted running an
> image; I only have terminal access to a FreeBSD machine.
>
> I'd mentioned in vm-dev that it would be really useful to have an image
> that only evaluated "3 + 4" and wrote that to stdout. (Maybe someone
> already has one?) We could use that with a Hudson instance, and verify
> our VM builds automatically.
>
> frank
Actually, you do not need a special image for this. Just supply a start
script when you start Squeak, and run headless using the -vm-display-null
parameter. The script can evaluate 3+4, write output to /dev/tty, then exit.
An example start script is attached.
Dave
-------------- next part --------------
"Evaluate 3 + 4 print result on /dev/tty, then exit.
Run this as a load script when starting Squeak, and start
the VM headless. The result should be displayed on console output.
For example, if you store this script in a file called '3plus4.st',
then you can run it with the following command:
Squeak -vm-dev-null myImage.image 3plus4.st
"
(FileStream fileNamed: '/dev/tty')
nextPutAll: '3 + 4 = ', (3 + 4) asString; lf.
Smalltalk quitPrimitive !
More information about the Squeak-dev
mailing list
|