去将Go移植到AVR架构?

huangapple go评论115阅读模式
英文:

Go port to the AVR architecture?

问题

自从我听说谷歌的新语言Go之后,我就想用它来进行微控制器编程。特别是针对Atmel AVR微控制器,比如Atmega系列。这个架构上有没有Go的移植版本?

英文:

Ever since I heard about google's new language Go I wanted to use it for microcontroller programming. In particular Atmel AVR micro-controllers like the Atmega series. Is there a Go port for this architecture?

答案1

得分: 5

我可能回答得太晚了,但是截至2012年8月,Go语言有默认的编译器(6g,8g)和GCC编译器(实际上也是官方的,但不是默认的),这意味着它支持GCC支持的所有架构;然而,正如Limbus所说,Go面向多核计算机。我个人认为你使用C语言会得到更好的结果。如果你仍然想使用Go,那也没问题,因为Go在单核应用程序中表现良好(但不如C语言)。

英文:

I may be answering too late, but Go, as August of 2012, has both the default compiler (6g, 8g) and the GCC compiler (it's actually official, too, but not the default), which means that it supports all the architectures that GCC supports; however, and as Limbus stated, Go is addressed to multi-core computers. I personally think that you would get better results with C. If you still want to use it, that is going to be fine, since Go manages well in single-core applications (but not as well as C).

答案2

得分: 4

没有,参见http://golang.org/doc/install.html

> Go编译器支持两个操作系统(Linux,Mac OS X)和三个指令集(amd64,386和arm(也称为ARM))

英文:

No there is not. See http://golang.org/doc/install.html

> Go compilers support two operating
> systems (Linux, Mac OS X) and three
> instruction sets. (amd64, 386, and arm
> (a.k.a. ARM))

答案3

得分: 4

tinygo 是一个针对 AVR(Arduino 等)和其他嵌入式系统的受限制的 Golang 编译器。它支持核心语言和标准库的子集。

英文:

tinygo is a limited golang compiler for AVR (Arduino, etc) and other embedded systems. It supports a subset of the core language and standard library.

答案4

得分: 3

我不认为Go语言(多核/高可扩展性)的目的与微控制器相适应。

问问自己为什么在微控制器上更倾向于使用C语言(甚至汇编语言),而不是C++。

英文:

I do not thinkg that the purpose of Go (multi-core/highscalability) goes well with mikrocontrollers.

Go ask yourself why C (and even assembly) is preferred over C++ on micro controllers.

huangapple
  • 本文由 发表于 2009年11月13日 09:19:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/1726546.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定