diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
commit | 3e45412327a2654a77944249962b3652e6142299 (patch) | |
tree | bc3bf69452afa055423cbe0c5cfa8ca357df6ccf /src/pkg/runtime/tiny/README | |
parent | c533680039762cacbc37db8dc7eed074c3e497be (diff) | |
download | golang-upstream/2011.01.12.tar.gz |
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'src/pkg/runtime/tiny/README')
-rwxr-xr-x | src/pkg/runtime/tiny/README | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/src/pkg/runtime/tiny/README b/src/pkg/runtime/tiny/README index bbe00f3ea..cf001d1e6 100755 --- a/src/pkg/runtime/tiny/README +++ b/src/pkg/runtime/tiny/README @@ -6,8 +6,7 @@ for 386 and arm. 386 It is very primitive but can run go/test/sieve.go, the concurrent -prime sieve, on a uniprocessor. It has only been tested using the -Bochs emulator. +prime sieve, on a uniprocessor. To run, first build the tools by running all.bash with GOARCH=386 and GOOS set to your normal GOOS (linux, darwin). Then: @@ -22,14 +21,41 @@ and GOOS set to your normal GOOS (linux, darwin). Then: 8l -a sieve.8 >sieve.asm # can consult sieve.asm for debugging dd if=/dev/zero of=disk count=10000 cat bootblock 8.out | dd of=disk conv=notrunc - bochs Use the built-in print(text string) function to print to the console. + +BOCHS + You may have to tweak the .bochsrc depending on your system, and you may need to install the Bochs emulator. + $ cp dot-bochsrc .bochsrc + $ $EDITOR .bochsrc # tweak it if required + $ bochs + + +ORACLE xVM VIRTUALBOX + +Install VirtualBox. Then: + + Build 'disk' (described above under '386'). + + $ VBoxManage convertfromraw disk go-tiny.vdi + $ VirtualBox + create a new VM; as disk use the go-tiny.vdi image. + start the vm. + + +QEMU / KVM + +This should work the same for qemu and kvm (really: qemu-kvm). + + Build 'disk' (described above under '386'). + + $ qemu -hda disk + ARM |