Project

General

Profile

Go

Added by Igor Pashev over 9 years ago

Just Go.

(23:20:43)
[pashev@dyson:~/GCD]
# go version
go version go1.4.2 solaris/amd64

(23:20:58)
[pashev@dyson:~/GCD]
# go build -a -x  gcd.go
WORK=/tmp/go-build382508362
mkdir -p $WORK/command-line-arguments/_obj/
cd /home/pashev/GCD
/usr/lib/go/pkg/tool/solaris_amd64/6g -o $WORK/command-line-arguments.a -trimpath $WORK -p command-line-arguments -complete -D _/home/pashev/GCD -I $WORK -pack ./gcd.go
cd .
/usr/lib/go/pkg/tool/solaris_amd64/6l -o gcd -L $WORK -extld=gcc $WORK/command-line-arguments.a

(23:21:02)
[pashev@dyson:~/GCD]
# ./gcd 11 22 33 44 121
11


Comments