编译Go编程语言有多困难? [英] How difficult is it to compile the Go programming language?

查看:205
本文介绍了编译Go编程语言有多困难?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上标题是什么:编译你的平均go *文件的过程是什么?将它放在编译器上并执行结果?

Basically what the title says: what's the process for compiling your average go* file? drop it on a compiler and execute the result?

*注意:OP编辑了将go C,之前它被回滚。

*note: The OP edited the question replacing "go" with "C", before it was rolled back. So some of the answers won't make sense.

推荐答案

你看一下Go教程,在 http://golang.org/doc/go_tutorial.html

Did you take a look at the Go tutorial at http://golang.org/doc/go_tutorial.html


    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 こんにちは 世界

这篇关于编译Go编程语言有多困难?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆