Go golang on MIPS CPU

1,643 views
Skip to first unread message

ROuNIN

unread,
May 12, 2012, 5:25:29 PM5/12/12
to golang-nuts
Hello,
How are the efforts for porting golang onto MIPS progressing? Will
this ever happen?

I was wanting to run golang code on a MIPS CPU powered WD My Book Live
as it is a
low power NAS which can be configured by modifying the Debian running
on it.

http://www.smallnetbuilder.com/nas/nas-reviews/31314-wd-my-book-live-reviewed

http://mybookworld.wikidot.com/mybook-live

ROuNIN


Ian Lance Taylor

unread,
May 13, 2012, 12:54:03 AM5/13/12
to ROuNIN, golang-nuts
ROuNIN <rounin....@googlemail.com> writes:

> How are the efforts for porting golang onto MIPS progressing? Will
> this ever happen?
>
> I was wanting to run golang code on a MIPS CPU powered WD My Book Live
> as it is a
> low power NAS which can be configured by modifying the Debian running
> on it.

I don't know about efforts to port the gc compiler to MIPS, but gccgo
does work on MIPS GNU/Linux targets.

Ian

ROuNIN

unread,
May 19, 2012, 11:29:12 AM5/19/12
to golang-nuts
Found out that the WD My Book Live is not a MIPS CPU but a PowerPC

rounin@MyBookLive:~$ more /proc/cpuinfo
processor : 0
cpu : APM82181
clock : 800.000008MHz
revision : 28.129 (pvr 12c4 1c81)
bogomips : 1600.00
timebase : 800000008
platform : PowerPC 44x Platform
model : amcc,apollo3g
Memory : 256 MB
rounin@MyBookLive:~$ uname -a
Linux MyBookLive 2.6.32.11-svn48181 #1 Thu Sep 15 18:22:06 PDT 2011
ppc GNU/Linux

The bogomips rating of 1600.00 seems higher than what I have seen for
ARM CPUs?

http://code.google.com/p/go/issues/detail?id=2533#c15 states:

Processor : ARM926EJ-S rev 5 (v5l)
BogoMIPS : 537.39
.
.
Hardware : ARM-Versatile PB
Revision : 0000
Serial : 0000000000000000

http://code.google.com/p/go/issues/detail?id=3381 states:

Processor : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 1191.11
.
.
Hardware : Marvell GuruPlug Reference Board
Revision : 0000
Serial : 0000000000000000

How are the efforts for porting golang onto PowerPC progressing? Will
this ever happen?

ROuNIN

Ian Lance Taylor

unread,
May 20, 2012, 1:34:53 PM5/20/12
to ROuNIN, golang-nuts
ROuNIN <rounin....@googlemail.com> writes:

> How are the efforts for porting golang onto PowerPC progressing? Will
> this ever happen?

The gccgo compiler already supports PowerPC.

Ian

Ian Lance Taylor

unread,
Jul 14, 2012, 9:30:35 AM7/14/12
to corey...@gmail.com, golan...@googlegroups.com
On Fri, Jul 13, 2012 at 2:48 PM, <corey...@gmail.com> wrote:
>
> Would you mind explaining a bit more about targeting MIPS? I use a cross
> compiler toolchain but unfortunately the toolchain I'm using is older. Is
> there a way to use gccgo and tell it to compile for a MIPS architecture? How
> would one go about running the compiled code on said architecture at that
> point? I've been looking for documentation on this but either I'm not
> understanding the little that I'm seeing or I'm not finding the right stuff.
> Any pointers would be fantastic.

To use gccgo for MIPS you need to build GCC 4.7.1 as a cross-compiler
for a MIPS target. Saying more than that involves many details about
what exactly you want to do. My general notes on the topic are at
http://www.airs.com/blog/archives/492 . For specific questions about
building GCC as a cross-compiler I would recommend the mailing list
gcc-...@gcc.gnu.org. Note that you will not get a useful answer to a
general question like "how do I build a MIPS cross-compiler" but you
may get one for a specific question about a specific problem that you
encountered while trying to build.

Ian
Reply all
Reply to author
Forward
0 new messages