我可以通过这个程序执行整数除法: a := 10 fmt.Println(a/b)然后,我在go中编写了一个程序,其中包含了+、-、*和/的函数。我用C语言编写了一个程序,调用每个函数并执行算术运算。除除法外,代码工作正常。package main
return a + bfunc Sub(a, b int) int {
我一直在试验gc和gccgo,我遇到了一些奇怪的行为。$ time go build -compiler gc -o checkprog_gc checkprog.go (x 3)go build <...> 0.13s user 0.01s system 99% cpu 0.148 total
go build <...> 0.1