基本上标题是什么:编译普通go *文件的过程是什么?将它放在编译器上并执行结果?
*注意:OP在回滚之前编辑了将“go”替换为“C”的问题。所以有些答案是没有意义的。
答案 0 :(得分:3)
您是否在http://golang.org/doc/go_tutorial.html
看了一下Go教程Here's how to compile and run our program. With 6g, say, $ 6g helloworld.go # compile; object goes into helloworld.6 $ 6l helloworld.6 # link; output goes into 6.out $ 6.out Hello, world; or Καλημέρα κόσμε; or こんにちは 世界 $ With gccgo it looks a little more traditional. $ gccgo helloworld.go $ a.out Hello, world; or Καλημέρα κόσμε; or こんにちは 世界