From d0fb3e61b938858a05e7b47fc8c242783582b440 Mon Sep 17 00:00:00 2001 From: Ivan Krasin Date: Fri, 30 Mar 2012 21:17:56 +0000 Subject: Update build instructions, because Go 1 does not expose 6g / 8g / etc tools and has the unified Go command --- gcd.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gcd.go b/gcd.go index 2b2bd3d..e111cc0 100644 --- a/gcd.go +++ b/gcd.go @@ -5,10 +5,11 @@ # gccgo gcd.go -o gcd-go # ./gcd-go 11 22 33 44 121 - With Google Go (6g for amd64, 8g for x86, http://golang.org/cmd/): - # 6g -o gcd-go.o gcd.go - # 6l -o gcd-go-6g gcd-go.o - # ./gcd-go-6g 11 22 33 44 121 + With Google Go (http://golang.org/): + # go run gcd.go 11 22 33 44 121 + # or, if you want to play with the binary + # go build -o gcd-go gcd.go + # ./gcd-go 11 22 33 44 121 GCC makes dynamically linked binary, but Google Go - statically linked -- cgit v1.2.3