summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Krasin <imkrasin@gmail.com>2012-03-30 21:17:56 +0000
committerIvan Krasin <imkrasin@gmail.com>2012-03-30 21:17:56 +0000
commitd0fb3e61b938858a05e7b47fc8c242783582b440 (patch)
treee98febb1c44ab1b999e641dfbe41349d877269b4
parent15f2c46559bf98cc10327cfc33d292fe1be5213a (diff)
downloadgcd-d0fb3e61b938858a05e7b47fc8c242783582b440.tar.gz
Update build instructions, because Go 1 does not expose 6g / 8g / etc tools and has the unified Go command
-rw-r--r--gcd.go9
1 files 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