diff options
author | Ivan Krasin <imkrasin@gmail.com> | 2012-03-30 21:17:56 +0000 |
---|---|---|
committer | Ivan Krasin <imkrasin@gmail.com> | 2012-03-30 21:17:56 +0000 |
commit | d0fb3e61b938858a05e7b47fc8c242783582b440 (patch) | |
tree | e98febb1c44ab1b999e641dfbe41349d877269b4 | |
parent | 15f2c46559bf98cc10327cfc33d292fe1be5213a (diff) | |
download | gcd-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.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |